Skip to main content

WaitingLimitsSetters

Trait WaitingLimitsSetters 

Source
pub trait WaitingLimitsSetters: Holds<WaitingLimits> + Sized {
    // Required methods
    fn per_source(self, value: usize) -> Self;
    fn total(self, value: usize) -> Self;
    fn rerecord(self, value: impl Into<Duration>) -> Self;
}
Expand description

The typed setters of WaitingLimits, for any builder that holds its settings.

Required Methods§

Source

fn per_source(self, value: usize) -> Self

Entries 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).

Source

fn total(self, value: usize) -> Self

Entries the whole directory may hold; past it nothing is recorded.

Source

fn rerecord(self, value: impl Into<Duration>) -> Self

How long the same peer from the same source is not recorded again.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> WaitingLimitsSetters for __B
where __B: Holds<WaitingLimits>,