Trait secrecy::Zeroize [−][src]
pub trait Zeroize {
pub fn zeroize(&mut self);
}Trait for securely erasing types from memory
Required methods
pub fn zeroize(&mut self)[src]
Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.
Implementations on Foreign Types
impl<Z> Zeroize for Vec<Z, Global> where
Z: Zeroize, [src]
impl<Z> Zeroize for Vec<Z, Global> where
Z: Zeroize, [src]Implementors
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes, [src]
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes, [src]impl<Z> Zeroize for [Z] where
Z: DefaultIsZeroes, [src]
impl<Z> Zeroize for [Z] where
Z: DefaultIsZeroes, [src]Impl Zeroize on slices of types that can be zeroized with Default.
This impl can eventually be optimized using an memset intrinsic,
such as core::intrinsics::volatile_set_memory. For that reason the blanket
impl on slices is bounded by DefaultIsZeroes.
To zeroize a mut slice of Z: Zeroize which does not impl
DefaultIsZeroes, call iter_mut().zeroize().