Skip to main content

NonceProvider

Trait NonceProvider 

Source
pub trait NonceProvider: Send + Sync {
    // Required methods
    fn next_nonce(&self) -> u64;
    fn current_nonce(&self) -> u64;
}

Required Methods§

Source

fn next_nonce(&self) -> u64

Source

fn current_nonce(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§