Struct secmem_alloc::zeroize::VolatileWriteZeroizer
source · [−]pub struct VolatileWriteZeroizer;
Expand description
This zeroizer uses a volatile write per byte. This zeroization technique is
similar to the zeroize
crate, available for all target platforms on
stable, but extremely slow.
In addition to the volatile write we place a compiler fence right next to the volatile write. This should not be necessary for secure zeroization since the volatile semantics guarenties our writes are not elided, and they can not be delayed since we are deallocating the memory after zeroization. The use of this fence is therefore only a precaution.
Trait Implementations
sourceimpl Clone for VolatileWriteZeroizer
impl Clone for VolatileWriteZeroizer
sourcefn clone(&self) -> VolatileWriteZeroizer
fn clone(&self) -> VolatileWriteZeroizer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VolatileWriteZeroizer
impl Debug for VolatileWriteZeroizer
sourceimpl Default for VolatileWriteZeroizer
impl Default for VolatileWriteZeroizer
sourcefn default() -> VolatileWriteZeroizer
fn default() -> VolatileWriteZeroizer
Returns the “default value” for a type. Read more
sourceimpl MemZeroizer for VolatileWriteZeroizer
impl MemZeroizer for VolatileWriteZeroizer
impl Copy for VolatileWriteZeroizer
Auto Trait Implementations
impl RefUnwindSafe for VolatileWriteZeroizer
impl Send for VolatileWriteZeroizer
impl Sync for VolatileWriteZeroizer
impl Unpin for VolatileWriteZeroizer
impl UnwindSafe for VolatileWriteZeroizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more