NonceGenerator

Trait NonceGenerator 

Source
pub trait NonceGenerator: Send + Sync {
    // Required method
    fn generate(&self) -> Option<Vec<u8>>;
}
Expand description

An interface for generating nonces.

Required Methods§

Source

fn generate(&self) -> Option<Vec<u8>>

Generates a nonce, if one is available. Otherwise, returns None.

Implementations on Foreign Types§

Source§

impl<N: NonceGenerator + ?Sized> NonceGenerator for Box<N>

Source§

fn generate(&self) -> Option<Vec<u8>>

Source§

impl<N: NonceGenerator + ?Sized> NonceGenerator for Arc<N>

Source§

fn generate(&self) -> Option<Vec<u8>>

Implementors§