[][src]Struct sp_core::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> Debug for Protected<T>[src]

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

type Target = T

The resulting type after dereferencing.

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T, U> AsByteSlice<T> for U where
    T: ToByteSlice,
    U: AsRef<[T]> + ?Sized
[src]

impl<U> AsSliceOf for U where
    U: AsRef<[u8]> + ?Sized
[src]

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

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

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]