[][src]Struct saltbabe::keypair::KeyPair

pub struct KeyPair<S, P> { /* fields omitted */ }

Methods

impl<S, P: KeyContext> KeyPair<S, P>[src]

pub fn context(&self) -> String[src]

impl<S, P> KeyPair<S, P> where
    S: FromUnsafeSlice<RHS = S>,
    P: PublicKeyContext + KeyContext + FromUnsafeSlice<RHS = P>, 
[src]

pub fn from_secret_slice(slice: &[u8]) -> Result<KeyPair<S, P>, Error>[src]

impl<S, P> KeyPair<S, P> where
    S: FromUnsafeSlice<RHS = S> + KeyContext,
    P: PublicKeyContext + KeyContext + FromUnsafeSlice<RHS = P>, 
[src]

impl<S, P> KeyPair<S, P>[src]

pub fn secret(&self) -> &S[src]

pub fn public(&self) -> &P[src]

Trait Implementations

impl<S: Clone, P: Clone> Clone for KeyPair<S, P>[src]

impl<S: PartialEq, P: PartialEq> PartialEq<KeyPair<S, P>> for KeyPair<S, P>[src]

impl<S: Debug, P: Debug> Debug for KeyPair<S, P>[src]

impl<S, P> Display for KeyPair<S, P> where
    S: ToHex,
    P: ToHex
[src]

impl<S, P> StructuralPartialEq for KeyPair<S, P>[src]

Auto Trait Implementations

impl<S, P> Send for KeyPair<S, P> where
    P: Send,
    S: Send

impl<S, P> Sync for KeyPair<S, P> where
    P: Sync,
    S: Sync

impl<S, P> Unpin for KeyPair<S, P> where
    P: Unpin,
    S: Unpin

impl<S, P> UnwindSafe for KeyPair<S, P> where
    P: UnwindSafe,
    S: UnwindSafe

impl<S, P> RefUnwindSafe for KeyPair<S, P> where
    P: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

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

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

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]