pub struct InMemoryBackend { /* private fields */ }Available on crate feature
in-memory only.Expand description
In-memory backend backed by a DashMap.
Suitable for single-node deployments. Each key tracks its GCRA
theoretical arrival time (TAC) in monotonic milliseconds since process
start; the allow/deny/remaining decision is delegated to the verified
pure core gcra_decide, matching the Redis GCRA backend’s semantics.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryBackend
impl Clone for InMemoryBackend
Source§impl Default for InMemoryBackend
impl Default for InMemoryBackend
Source§impl RateLimitBackend for InMemoryBackend
impl RateLimitBackend for InMemoryBackend
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryBackend
impl Freeze for InMemoryBackend
impl Send for InMemoryBackend
impl Sync for InMemoryBackend
impl Unpin for InMemoryBackend
impl UnsafeUnpin for InMemoryBackend
impl UnwindSafe for InMemoryBackend
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