Enum sp_keyring::ed25519::Keyring [−][src]
pub enum Keyring { Alice, Bob, Charlie, Dave, Eve, Ferdie, One, Two, }
Set of test accounts.
Variants
Implementations
impl Keyring
[src]
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 IntoEnumIterator for Keyring
[src]
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 Copy for Keyring
[src]
impl Eq for Keyring
[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> CallHasher for T where
T: Hash,
[src]
impl<T> CallHasher for T where
T: Hash,
[src]impl<T> CheckedConversion for T
[src]
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument 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, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<T> SaturatedConversion for T
[src]
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<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]pub fn unique_saturated_into(self) -> T
[src]
impl<T> Error for T where
T: 'static + Debug + Display + Send + Sync,
[src]
T: 'static + Debug + Display + Send + Sync,
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> 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,