[][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> Drop for Protected<T>[src]

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

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

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

type Target = T

The resulting type after dereferencing.

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

Auto Trait Implementations

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

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

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

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

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, 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, 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<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]

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
[src]