pub struct ReplayStoreConfig {
pub max_entries: usize,
pub ttl_ms: u64,
pub cleanup_interval_ms: u64,
}Expand description
Capacity, TTL, and cleanup policy for a replay store.
Fields§
§max_entries: usizeMaximum number of live replay identities.
ttl_ms: u64Maximum time a caller-provided expiry may retain an identity.
cleanup_interval_ms: u64Maximum interval between full expired-entry cleanup passes.
Implementations§
Trait Implementations§
Source§impl Clone for ReplayStoreConfig
impl Clone for ReplayStoreConfig
Source§fn clone(&self) -> ReplayStoreConfig
fn clone(&self) -> ReplayStoreConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReplayStoreConfig
Source§impl Debug for ReplayStoreConfig
impl Debug for ReplayStoreConfig
Source§impl Default for ReplayStoreConfig
impl Default for ReplayStoreConfig
impl Eq for ReplayStoreConfig
Source§impl PartialEq for ReplayStoreConfig
impl PartialEq for ReplayStoreConfig
impl StructuralPartialEq for ReplayStoreConfig
Auto Trait Implementations§
impl Freeze for ReplayStoreConfig
impl RefUnwindSafe for ReplayStoreConfig
impl Send for ReplayStoreConfig
impl Sync for ReplayStoreConfig
impl Unpin for ReplayStoreConfig
impl UnsafeUnpin for ReplayStoreConfig
impl UnwindSafe for ReplayStoreConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more