Skip to main content

NonceStore

Trait NonceStore 

Source
pub trait NonceStore {
    // Required methods
    fn check_and_update(
        &mut self,
        actor: &AgentId,
        nonce: u64,
        now_ms: i64,
        ttl_ms: i64,
    ) -> Result<u64>;
    fn max_nonce(&self, actor: &AgentId, now_ms: i64) -> Option<u64>;
}

Required Methods§

Source

fn check_and_update( &mut self, actor: &AgentId, nonce: u64, now_ms: i64, ttl_ms: i64, ) -> Result<u64>

Source

fn max_nonce(&self, actor: &AgentId, now_ms: i64) -> Option<u64>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§