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§
Sourcefn cleanup(&self, now_ms: u64) -> Result<usize, PeerRpcError>
fn cleanup(&self, now_ms: u64) -> Result<usize, PeerRpcError>
Removes entries whose effective TTL has elapsed.
Sourcefn metrics(&self) -> ReplayStoreMetrics
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".