[][src]Struct noise_rust_crypto::sensitive::Sensitive

pub struct Sensitive<A: U8Array + Zeroize>(_);

Struct holding a value that is safely zeroed on drop.

Implementations

impl<A: U8Array + Zeroize> Sensitive<A>[src]

pub fn from(a: Zeroizing<A>) -> Self[src]

Trait Implementations

impl<A: U8Array + Zeroize> Deref for Sensitive<A>[src]

type Target = A

The resulting type after dereferencing.

impl<A: U8Array + Zeroize> DerefMut for Sensitive<A>[src]

impl<A> U8Array for Sensitive<A> where
    A: Zeroize + U8Array
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Sensitive<A> where
    A: RefUnwindSafe

impl<A> Send for Sensitive<A> where
    A: Send

impl<A> Sync for Sensitive<A> where
    A: Sync

impl<A> Unpin for Sensitive<A> where
    A: Unpin

impl<A> UnwindSafe for Sensitive<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.