Skip to main content

WaitingSettingsSetters

Trait WaitingSettingsSetters 

Source
pub trait WaitingSettingsSetters: Holds<WaitingSettings> + Sized {
    // Required methods
    fn limits(self, value: impl Into<WaitingLimits>) -> Self;
    fn ipv6_prefix(self, value: u8) -> Self;
    fn when_full(self, value: impl Into<WhenFull>) -> Self;
    fn record_interval(self, value: impl Into<Duration>) -> Self;
}
Expand description

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

Required Methods§

Source

fn limits(self, value: impl Into<WaitingLimits>) -> Self

The bounds on entries. Default WaitingLimits::default.

Source

fn ipv6_prefix(self, value: u8) -> Self

The IPv6 prefix length sources are grouped by: 64, since one holder controls every address of a /64. 128 counts each address alone, which lets the holder of a subnet fill the queue; values above 128 are 128. IPv4 sources, IPv4-mapped IPv6 ones included, count per address.

Source

fn when_full(self, value: impl Into<WhenFull>) -> Self

What a source at its limit does with a newcomer. Default WhenFull::Refuse, so that strangers sharing a source cannot flush those already waiting.

Source

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

The least time between two new records from one source, each record being a synced write a stranger can cause. Default DEFAULT_RECORD_INTERVAL; zero is no limit.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> WaitingSettingsSetters for __B
where __B: Holds<WaitingSettings>,