pub trait SecureZeroingType: Zeroize + Clone {
// Required method
fn zeroed() -> Self;
// Provided method
fn secure_clone(&self) -> Self { ... }
}
Expand description
Trait for types that can be securely zeroed and cloned
Required Methods§
Provided Methods§
Sourcefn secure_clone(&self) -> Self
fn secure_clone(&self) -> Self
Create a secure clone that preserves security properties
This method ensures that cloned instances maintain the same security guarantees as the original, including proper zeroization.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.