pub struct InMemoryReplayGuard { /* private fields */ }Expand description
A process-local replay guard for tests and low-traffic, single-replica services.
Claims are not shared between processes, so this only protects a single replica. Use a shared store when the service runs more than one. Each claim scans the entire map under a mutex to remove expired entries, so use a shared store with native expiry for production traffic.
Trait Implementations§
Source§impl Debug for InMemoryReplayGuard
impl Debug for InMemoryReplayGuard
Source§impl Default for InMemoryReplayGuard
impl Default for InMemoryReplayGuard
Auto Trait Implementations§
impl !Freeze for InMemoryReplayGuard
impl RefUnwindSafe for InMemoryReplayGuard
impl Send for InMemoryReplayGuard
impl Sync for InMemoryReplayGuard
impl Unpin for InMemoryReplayGuard
impl UnsafeUnpin for InMemoryReplayGuard
impl UnwindSafe for InMemoryReplayGuard
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