Struct secmem_alloc::zeroize::VolatileMemsetZeroizer
source · [−]pub struct VolatileMemsetZeroizer;
Expand description
This zeroizer uses the volatile memset intrinsic which does not yet have a stable counterpart. It should be very fast, but requires nightly.
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 VolatileMemsetZeroizer
impl Clone for VolatileMemsetZeroizer
sourcefn clone(&self) -> VolatileMemsetZeroizer
fn clone(&self) -> VolatileMemsetZeroizer
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 VolatileMemsetZeroizer
impl Debug for VolatileMemsetZeroizer
sourceimpl Default for VolatileMemsetZeroizer
impl Default for VolatileMemsetZeroizer
sourcefn default() -> VolatileMemsetZeroizer
fn default() -> VolatileMemsetZeroizer
Returns the “default value” for a type. Read more
sourceimpl MemZeroizer for VolatileMemsetZeroizer
impl MemZeroizer for VolatileMemsetZeroizer
impl Copy for VolatileMemsetZeroizer
Auto Trait Implementations
impl RefUnwindSafe for VolatileMemsetZeroizer
impl Send for VolatileMemsetZeroizer
impl Sync for VolatileMemsetZeroizer
impl Unpin for VolatileMemsetZeroizer
impl UnwindSafe for VolatileMemsetZeroizer
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