pub struct Bucket<K, C = SystemClock> { /* private fields */ }Expand description
A sliding-window counter per key, holding at most Limits::capacity keys.
Implementations§
Auto Trait Implementations§
impl<K, C> Freeze for Bucket<K, C>where
C: Freeze,
impl<K, C> RefUnwindSafe for Bucket<K, C>where
C: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, C> Send for Bucket<K, C>
impl<K, C> Sync for Bucket<K, C>
impl<K, C> Unpin for Bucket<K, C>
impl<K, C> UnsafeUnpin for Bucket<K, C>where
C: UnsafeUnpin,
impl<K, C> UnwindSafe for Bucket<K, C>where
C: UnwindSafe,
K: UnwindSafe,
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