ic_agent::agent

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§