Enum sp_keyring::sr25519::Keyring [−][src]
Set of test accounts.
Variants
Implementations
impl Keyring[src]
pub fn from_public(who: &Public) -> Option<Keyring>[src]
pub fn from_account_id(who: &AccountId32) -> Option<Keyring>[src]
pub fn from_raw_public(who: [u8; 32]) -> Option<Keyring>[src]
pub fn to_raw_public(self) -> [u8; 32][src]
pub fn from_h256_public(who: H256) -> Option<Keyring>[src]
pub fn to_h256_public(self) -> H256[src]
pub fn to_raw_public_vec(self) -> Vec<u8>[src]
pub fn to_account_id(self) -> AccountId32[src]
pub fn sign(self, msg: &[u8]) -> Signature[src]
pub fn pair(self) -> Pair[src]
pub fn iter() -> impl Iterator<Item = Keyring>[src]
Returns an iterator over all test accounts.
pub fn public(self) -> Public[src]
pub fn to_seed(self) -> String[src]
Trait Implementations
impl AsRef<[u8; 32]> for Keyring[src]
impl AsRef<Public> for Keyring[src]
impl Clone for Keyring[src]
impl Copy for Keyring[src]
impl Debug for Keyring[src]
impl Deref for Keyring[src]
impl Display for Keyring[src]
impl Eq for Keyring[src]
impl From<Keyring> for &'static str[src]
impl From<Keyring> for MultiSigner[src]
impl From<Keyring> for AccountId32[src]
impl From<Keyring> for Public[src]
impl From<Keyring> for Pair[src]
impl From<Keyring> for [u8; 32][src]
impl From<Keyring> for H256[src]
impl From<Keyring> for &'static [u8; 32][src]
impl FromStr for Keyring[src]
type Err = ParseKeyringError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Hash for Keyring[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl IntoEnumIterator for Keyring[src]
type Iterator = KeyringIter
fn iter() -> KeyringIterⓘNotable traits for KeyringIter
impl Iterator for KeyringIter type Item = Keyring;[src]
Notable traits for KeyringIter
impl Iterator for KeyringIter type Item = Keyring;impl PartialEq<Keyring> for Keyring[src]
fn eq(&self, other: &Keyring) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for Keyring[src]
impl StructuralPartialEq for Keyring[src]
Auto Trait Implementations
impl RefUnwindSafe for Keyring
impl Send for Keyring
impl Sync for Keyring
impl Unpin for Keyring
impl UnwindSafe for Keyring
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CallHasher for T where
T: Hash, [src]
T: Hash,
impl<T> CheckedConversion for T[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>, [src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>, [src]
Self: TryInto<T>,
impl<T> DynClone for T where
T: Clone, [src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> Error for T where
T: 'static + Debug + Display + Send + Sync, [src]
T: 'static + Debug + Display + Send + Sync,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(outer: &Outer) -> &T[src]
Get a reference to the inner from the outer.
pub fn from_mut(outer: &mut Outer) -> &mut T[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeDisplay for T where
T: Display, [src]
T: Display,
impl<T> MaybeFromStr for T where
T: FromStr, [src]
T: FromStr,
impl<T> MaybeHash for T where
T: Hash, [src]
T: Hash,
impl<T> MaybeHash for T where
T: Hash, [src]
T: Hash,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone, [src]
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T[src]
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>, [src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>, [src]
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>, [src]
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,