pub struct RateLimiter<K, C>where
C: Clock,{ /* private fields */ }
Implementations§
Source§impl<K> RateLimiter<K, MonotonicClock>
impl<K> RateLimiter<K, MonotonicClock>
Source§impl<K> RateLimiter<K, FakeRelativeClock>
impl<K> RateLimiter<K, FakeRelativeClock>
pub fn advance_clock(&self, by: Duration)
Source§impl<K, C> RateLimiter<K, C>
impl<K, C> RateLimiter<K, C>
Auto Trait Implementations§
impl<K, C> Freeze for RateLimiter<K, C>
impl<K, C> !RefUnwindSafe for RateLimiter<K, C>
impl<K, C> Send for RateLimiter<K, C>
impl<K, C> Sync for RateLimiter<K, C>
impl<K, C> Unpin for RateLimiter<K, C>
impl<K, C> UnwindSafe for RateLimiter<K, C>
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