pub struct RateLimiterState { /* private fields */ }Expand description
Lock-free token-bucket rate limiter using millisecond-precision timestamps for smooth refill.
Implementations§
Auto Trait Implementations§
impl !Freeze for RateLimiterState
impl RefUnwindSafe for RateLimiterState
impl Send for RateLimiterState
impl Sync for RateLimiterState
impl Unpin for RateLimiterState
impl UnsafeUnpin for RateLimiterState
impl UnwindSafe for RateLimiterState
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