Skip to main content

ReplayStore

Trait ReplayStore 

Source
pub trait ReplayStore: PeerNonceStore {
    // Required methods
    fn cleanup(&self, now_ms: u64) -> Result<usize, PeerRpcError>;
    fn metrics(&self) -> ReplayStoreMetrics;
}
Expand description

Replay protection with explicit cleanup and observable bounds.

Required Methods§

Source

fn cleanup(&self, now_ms: u64) -> Result<usize, PeerRpcError>

Removes entries whose effective TTL has elapsed.

Source

fn metrics(&self) -> ReplayStoreMetrics

Returns bounded non-sensitive metrics.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§