Struct discv5::socket::RateLimiter
source · pub struct RateLimiter { /* private fields */ }
Expand description
Manages rate limiting of requests per peer, with differentiated rates per protocol.
Implementations§
source§impl RateLimiter
impl RateLimiter
Trait Implementations§
source§impl Clone for RateLimiter
impl Clone for RateLimiter
source§fn clone(&self) -> RateLimiter
fn clone(&self) -> RateLimiter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RateLimiter
impl RefUnwindSafe for RateLimiter
impl Send for RateLimiter
impl Sync for RateLimiter
impl Unpin for RateLimiter
impl UnwindSafe for RateLimiter
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