pub struct Entry<T>{
pub max_count: u64,
pub count: AtomicU64,
pub value: T,
}Expand description
Per-entry state for the sliding-window limiter (max_count == 0 means unlimited).
Fields§
§max_count: u64§count: AtomicU64§value: TTrait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Entry<T>
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>
impl<T> Sync for Entry<T>
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnsafeUnpin for Entry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Entry<T>where
T: 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