#[non_exhaustive]pub struct WaitingSettings {
pub limits: WaitingLimits,
pub ipv6_prefix: u8,
pub when_full: WhenFull,
pub record_interval: Duration,
}Expand description
What a WaitingQueue is built from, in the form a file, a form or a peer fills.
Every key is optional (an absent one is its default) and an unknown key is refused. The type
is Describe, so a Partial<WaitingSettings> is filled from text and built, and it is
#[non_exhaustive]: start from Default and assign the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.limits: WaitingLimitsThe bounds on entries. Default WaitingLimits::default.
ipv6_prefix: u8The 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.
when_full: WhenFullWhat a source at its limit does with a newcomer. Default WhenFull::Refuse, so that
strangers sharing a source cannot flush those already waiting.
record_interval: DurationThe 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.
Implementations§
Source§impl WaitingSettings
impl WaitingSettings
Sourcepub fn non_defaults(&self) -> Vec<NonDefault>
pub fn non_defaults(&self) -> Vec<NonDefault>
Every setting that differs from its default, named by key path (limits.per_source).