Trait zeroize::TryZeroize
source · [−]pub trait TryZeroize {
fn try_zeroize(&mut self) -> bool;
}
Expand description
Fallible trait for representing cases where zeroization may or may not be possible.
This is primarily useful for scenarios like reference counted data, where zeroization is only possible when the last reference is dropped.
Required methods
fn try_zeroize(&mut self) -> bool
fn try_zeroize(&mut self) -> bool
Try to zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.