Trait ed25519_dalek::pkcs8::spki::der::zeroize::TryZeroize
source · pub trait TryZeroize {
// Required method
fn try_zeroize(&mut self) -> bool;
}
Available on crate feature
pkcs8
only.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§
sourcefn 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.