Struct WaitingLimits
#[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§
§impl Clone for WaitingLimits
impl Clone for WaitingLimits
§fn clone(&self) -> WaitingLimits
fn clone(&self) -> WaitingLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaitingLimits
§impl Debug for WaitingLimits
impl Debug for WaitingLimits
§impl Default for WaitingLimits
impl Default for WaitingLimits
§fn default() -> WaitingLimits
fn default() -> WaitingLimits
Returns the “default value” for a type. Read more
§impl Describe for WaitingLimits
impl Describe for WaitingLimits
§fn description() -> Description
fn description() -> Description
What this type is.
impl Eq for WaitingLimits
impl Fields for WaitingLimits
§impl Inspect for WaitingLimits
impl Inspect for WaitingLimits
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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