Skip to main content

DropStrategy

Trait DropStrategy 

Source
pub trait DropStrategy {
    type Extra;

    // Required method
    fn drop(data: &mut [u8], extra: &Self::Extra);
}

Required Associated Types§

Required Methods§

Source

fn drop(data: &mut [u8], extra: &Self::Extra)

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§

Source§

impl<E> DropStrategy for NoOp<E>

Source§

type Extra = E

Source§

impl<E> DropStrategy for Zeroize<E>

Source§

type Extra = E

Source§

impl<const KEY: u8> DropStrategy for const_secret::xor::ReEncrypt<KEY>

Source§

impl<const KEY_LEN: usize> DropStrategy for const_secret::rc4::ReEncrypt<KEY_LEN>