[][src]Struct substrate_primitives::crypto::Protected

pub struct Protected<T: Zeroize>(_);

A store for sensitive data.

Calls Zeroize::zeroize upon Drop.

Trait Implementations

impl<T: Zeroize> AsRef<T> for Protected<T>[src]

impl<T: Clone + Zeroize> Clone for Protected<T>[src]

impl<T: Zeroize> From<T> for Protected<T>[src]

impl<T: Zeroize> Drop for Protected<T>[src]

impl<T: Zeroize> Deref for Protected<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Zeroize> Debug for Protected<T>[src]

impl<T: Zeroize> Zeroize for Protected<T>[src]

Auto Trait Implementations

impl<T> Send for Protected<T> where
    T: Send

impl<T> Unpin for Protected<T> where
    T: Unpin

impl<T> Sync for Protected<T> where
    T: Sync

impl<T> UnwindSafe for Protected<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Protected<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

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

fn from_ref(&Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(&mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Borrow<T> for T where
    T: ?Sized

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

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

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes

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

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<T> MaybeDebug for T where
    T: Debug