Enum tetcore_test_client::Ed25519Keyring[][src]

pub enum Ed25519Keyring {
    Alice,
    Bob,
    Charlie,
    Dave,
    Eve,
    Ferdie,
    One,
    Two,
}

Set of test accounts.

Variants

Alice
Bob
Charlie
Dave
Eve
Ferdie
One
Two

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, Global>[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]

Methods from Deref<Target = [u8; 32]>

pub fn as_slice(&self) -> &[T][src]

🔬 This is a nightly-only experimental API. (array_methods)

Returns a slice containing the entire array. Equivalent to &s[..].

pub fn each_ref(&self) -> [&T; N][src]

🔬 This is a nightly-only experimental API. (array_methods)

Borrows each element and returns an array of references with the same size as self.

Example

#![feature(array_methods)]

let floats = [3.1, 2.7, -1.0];
let float_refs: [&f64; 3] = floats.each_ref();
assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);

This method is particularly useful if combined with other methods, like map. This way, you can avoid moving the original array if its elements are not Copy.

#![feature(array_methods, array_map)]

let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()];
let is_ascii = strings.each_ref().map(|s| s.is_ascii());
assert_eq!(is_ascii, [true, false, true]);

// We can still access the original array: it has not been moved.
assert_eq!(strings.len(), 3);

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]

type Target = [u8; 32]

The resulting type after dereferencing.

impl Display for Keyring[src]

impl Eq for Keyring[src]

impl From<Keyring> for &'static [u8; 32][src]

impl From<Keyring> for [u8; 32][src]

impl Hash for Keyring[src]

impl IntoEnumIterator for Keyring[src]

impl PartialEq<Keyring> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> CheckedConversion for T[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Error for T where
    T: 'static + Debug + Display + Send + Sync
[src]

impl<T> ExHashT for T where
    T: Hash + Eq + Debug + Clone + Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

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]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDisplay for T where
    T: Display
[src]

impl<T> MaybeHash for T where
    T: Hash
[src]

impl<T> MaybeHash for T where
    T: Hash

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]