[][src]Struct bundled_crypto::StableKeyStore

pub struct StableKeyStore<A: Algo>(_, _);

Maintains an algorithm and its key.

Methods

impl<A: Algo> KeyStore<A>[src]

pub fn new(alg: A, k: A::Key) -> Self[src]

Uses the provided algo and key to create itself.

pub fn key(&self) -> &A::Key[src]

Returns a reference to the key.

pub fn alg(&self) -> &A[src]

Returns a reference to the algo.

Auto Trait Implementations

impl<A> Send for KeyStore<A> where
    A: Send,
    <A as Algo>::Key: Send

impl<A> Unpin for KeyStore<A> where
    A: Unpin,
    <A as Algo>::Key: Unpin

impl<A> Sync for KeyStore<A> where
    A: Sync,
    <A as Algo>::Key: Sync

impl<A> UnwindSafe for KeyStore<A> where
    A: UnwindSafe,
    <A as Algo>::Key: UnwindSafe

impl<A> RefUnwindSafe for KeyStore<A> where
    A: RefUnwindSafe,
    <A as Algo>::Key: RefUnwindSafe

Blanket Implementations

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

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

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

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

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