Struct libp2p_relay::v2::relay::rate_limiter::GenericRateLimiter
source · [−]pub struct GenericRateLimiter<Id> { /* private fields */ }
Expand description
Rate limiter using the Token Bucket algorithm.
Auto Trait Implementations
impl<Id> RefUnwindSafe for RateLimiter<Id> where
Id: RefUnwindSafe,
impl<Id> Send for RateLimiter<Id> where
Id: Send,
impl<Id> Sync for RateLimiter<Id> where
Id: Sync,
impl<Id> Unpin for RateLimiter<Id> where
Id: Unpin,
impl<Id> UnwindSafe for RateLimiter<Id> where
Id: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more