Trait libcryptsetup_rs::SafeMemzero
source · pub trait SafeMemzero {
// Required method
fn safe_memzero(&mut self);
}
Expand description
A trait to be implemented for a segment of memory that can be explicitly zeroed in a way that will not be optimized away by the compiler.
Required Methods§
sourcefn safe_memzero(&mut self)
fn safe_memzero(&mut self)
Zero the data in the buffer. To enable managed zeroing of a buffer,
call this in a Drop
implementation.