pub struct MemoryReplayStore { /* private fields */ }Expand description
In-memory replay protection store for environments without Redis.
Tracks seen kx hashes for a configurable TTL and prunes expired entries on each check.
Wrap in Arc (via MemoryReplayStore::new) and share across all Actix workers via Interceptor.
Implementations§
Auto Trait Implementations§
impl !Freeze for MemoryReplayStore
impl !RefUnwindSafe for MemoryReplayStore
impl Send for MemoryReplayStore
impl Sync for MemoryReplayStore
impl Unpin for MemoryReplayStore
impl UnsafeUnpin for MemoryReplayStore
impl !UnwindSafe for MemoryReplayStore
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