pub trait Decoy {
// Required method
fn random_decoy(csprng: &mut impl CryptoRngCore) -> Self;
}Expand description
Generate legitimate looking instances of data structures without user input.
Required Methods§
Sourcefn random_decoy(csprng: &mut impl CryptoRngCore) -> Self
fn random_decoy(csprng: &mut impl CryptoRngCore) -> Self
Create a decoy instance from provided RNG.
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.