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

Implementations

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: Clone + Zeroize> Clone for Zeroizing<Z>[src]

impl<Z: Debug + Zeroize> Debug for Zeroizing<Z>[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> Drop for Zeroizing<Z> where
    Z: Zeroize
[src]

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

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

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