pub struct RateLimitConfig {
pub burst: u32,
pub refill_per_second: f64,
pub idle_retention: Duration,
pub max_tracked_peers: usize,
}Fields§
§burst: u32§refill_per_second: f64§idle_retention: Duration§max_tracked_peers: usizeImplementations§
Trait Implementations§
Source§impl Clone for RateLimitConfig
impl Clone for RateLimitConfig
impl Copy for RateLimitConfig
Source§impl Debug for RateLimitConfig
impl Debug for RateLimitConfig
Auto Trait Implementations§
impl Forget for RateLimitConfig
impl Freeze for RateLimitConfig
impl Move for RateLimitConfig
impl RefUnwindSafe for RateLimitConfig
impl Send for RateLimitConfig
impl Sync for RateLimitConfig
impl Unpin for RateLimitConfig
impl UnsafeUnpin for RateLimitConfig
impl UnwindSafe for RateLimitConfig
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