Struct secmem_alloc::zeroize::LibcZeroizer
source · [−]pub struct LibcZeroizer;
Expand description
This zeroizer uses volatile zeroization functions provided by libc. It should be fast but is only available on certain platforms.
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 LibcZeroizer
impl Clone for LibcZeroizer
sourcefn clone(&self) -> LibcZeroizer
fn clone(&self) -> LibcZeroizer
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 LibcZeroizer
impl Debug for LibcZeroizer
sourceimpl Default for LibcZeroizer
impl Default for LibcZeroizer
sourcefn default() -> LibcZeroizer
fn default() -> LibcZeroizer
Returns the “default value” for a type. Read more
sourceimpl MemZeroizer for LibcZeroizer
impl MemZeroizer for LibcZeroizer
impl Copy for LibcZeroizer
Auto Trait Implementations
impl RefUnwindSafe for LibcZeroizer
impl Send for LibcZeroizer
impl Sync for LibcZeroizer
impl Unpin for LibcZeroizer
impl UnwindSafe for LibcZeroizer
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