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

Wrap a value in Zeroizing, ensuring it's zeroized on drop.

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

impl<T> From<T> for 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]