Trait SecureZeroingType

Source
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§

Source

fn zeroed() -> Self

Create a zeroed instance

Provided Methods§

Source

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.

Implementors§