[][src]Struct zeroize::Zeroizing

pub struct Zeroizing<Z: Zeroize>(_);

Zeroizing is a a wrapper for any Z: Zeroize type which implements a Drop handler which zeroizes dropped values.

Methods

impl<Z> Zeroizing<Z> where
    Z: Zeroize
[src]

pub fn new(value: Z) -> Self[src]

Move value inside a Zeroizing wrapper which ensures it will be zeroized when it's dropped.

Trait Implementations

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

impl<Z> Deref for Zeroizing<Z> where
    Z: Zeroize
[src]

type Target = Z

The resulting type after dereferencing.

impl<Z> DerefMut for Zeroizing<Z> where
    Z: Zeroize
[src]

impl<Z> From<Z> for Zeroizing<Z> where
    Z: Zeroize
[src]

impl<Z: Debug + Zeroize> Debug for Zeroizing<Z>[src]

impl<Z: PartialEq + Zeroize> PartialEq<Zeroizing<Z>> for Zeroizing<Z>[src]

impl<Z: Eq + Zeroize> Eq for Zeroizing<Z>[src]

impl<Z> Drop for Zeroizing<Z> where
    Z: Zeroize
[src]

impl<Z: Zeroize> StructuralPartialEq for Zeroizing<Z>[src]

impl<Z: Zeroize> StructuralEq for Zeroizing<Z>[src]

impl<Z: Clone + Zeroize> Clone for Zeroizing<Z>[src]

Auto Trait Implementations

impl<Z> Unpin for Zeroizing<Z> where
    Z: Unpin

impl<Z> Send for Zeroizing<Z> where
    Z: Send

impl<Z> Sync for Zeroizing<Z> where
    Z: Sync

Blanket Implementations

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

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

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

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

type Error = !

The type returned in the event of a conversion error.

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.