#[non_exhaustive]pub struct WaitingLimits {
pub per_source: usize,
pub total: usize,
pub rerecord: Duration,
}Expand description
Bounds on the waiting queue.
Every key is optional (an absent one is its default) and an unknown key is refused.
rerecord is a duration: 60, 30s, 250ms. The struct is #[non_exhaustive]: start from
Default and assign the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.per_source: usizeEntries one source may hold; past it, a newcomer is refused unless the store says otherwise
(WhenFull). A source is an IPv4 address, or an IPv6 prefix
(/64 by default).
total: usizeEntries the whole directory may hold; past it nothing is recorded.
rerecord: DurationHow long the same peer from the same source is not recorded again.
Trait Implementations§
Source§impl Clone for WaitingLimits
impl Clone for WaitingLimits
impl Copy for WaitingLimits
Source§impl Debug for WaitingLimits
impl Debug for WaitingLimits
Source§impl Default for WaitingLimits
impl Default for WaitingLimits
Source§impl Describe for WaitingLimits
impl Describe for WaitingLimits
impl Eq for WaitingLimits
impl Fields for WaitingLimits
Source§impl Inspect for WaitingLimits
impl Inspect for WaitingLimits
Source§impl PartialEq for WaitingLimits
impl PartialEq for WaitingLimits
impl StructuralPartialEq for WaitingLimits
Auto Trait Implementations§
impl Freeze for WaitingLimits
impl RefUnwindSafe for WaitingLimits
impl Send for WaitingLimits
impl Sync for WaitingLimits
impl Unpin for WaitingLimits
impl UnsafeUnpin for WaitingLimits
impl UnwindSafe for WaitingLimits
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