pub struct InMemorySlidingWindowStore { /* private fields */ }Expand description
In-memory SlidingWindowStore backed by a concurrent hash map.
This is the default store used by SlidingWindowRateLimiter.
Implementations§
Trait Implementations§
Source§impl Clone for InMemorySlidingWindowStore
impl Clone for InMemorySlidingWindowStore
Source§fn clone(&self) -> InMemorySlidingWindowStore
fn clone(&self) -> InMemorySlidingWindowStore
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 moreSource§impl Debug for InMemorySlidingWindowStore
impl Debug for InMemorySlidingWindowStore
Source§impl Default for InMemorySlidingWindowStore
impl Default for InMemorySlidingWindowStore
Source§impl SlidingWindowStore for InMemorySlidingWindowStore
impl SlidingWindowStore for InMemorySlidingWindowStore
Source§fn check_and_count(&self, params: SlidingWindowParams) -> bool
fn check_and_count(&self, params: SlidingWindowParams) -> bool
Atomically checks and (conditionally) increments the counter.
Auto Trait Implementations§
impl Freeze for InMemorySlidingWindowStore
impl !RefUnwindSafe for InMemorySlidingWindowStore
impl Send for InMemorySlidingWindowStore
impl Sync for InMemorySlidingWindowStore
impl Unpin for InMemorySlidingWindowStore
impl UnsafeUnpin for InMemorySlidingWindowStore
impl !UnwindSafe for InMemorySlidingWindowStore
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