pub(crate) struct RateState {
pub(crate) buckets: Mutex<HashMap<String, VecDeque<f64>>>,
}Expand description
Per-agent sliding-window action timestamps for the rate-limit pack.
Fields§
§buckets: Mutex<HashMap<String, VecDeque<f64>>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RateState
impl RefUnwindSafe for RateState
impl Send for RateState
impl Sync for RateState
impl Unpin for RateState
impl UnsafeUnpin for RateState
impl UnwindSafe for RateState
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