Struct DeskLimits
#[non_exhaustive]pub struct DeskLimits {
pub pending: usize,
pub pending_per_source: usize,
pub pin_runs_per_source: usize,
pub wrong_codes_per_approver: usize,
pub approver_window: Duration,
pub wrong_codes_total: usize,
pub ipv6_prefix: u8,
}Expand description
Bounds on a desk’s pending work and on guessing. Every field has a default; any value is
accepted, and non_defaults lists the ones that differ from
their default. Read like PairingOptions; #[non_exhaustive].
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.pending: usizePairing exchanges in progress at once. Default 32.
pending_per_source: usizePairing exchanges in progress at once from one source (every mode). A source is an IPv4
address or an IPv6 prefix of ipv6_prefix bits. Default 4.
pin_runs_per_source: usizePIN runs one source may start per PairingOptions::pin_ttl. A source is an IPv4
address or an IPv6 prefix of ipv6_prefix bits. Default 8.
wrong_codes_per_approver: usizeWrong user codes one approver may enter per
approver_window. Default 5.
approver_window: DurationThe window of wrong_codes_per_approver.
Default 1 minute.
wrong_codes_total: usizeWrong user codes all approvers together may enter per
PairingOptions::device_ttl. Default 60.
ipv6_prefix: u8The IPv6 prefix length sources are grouped by. Default 64.
Implementations§
§impl DeskLimits
impl DeskLimits
pub fn non_defaults(&self) -> Vec<NonDefault>
pub fn non_defaults(&self) -> Vec<NonDefault>
Every limit that differs from its default, named by key path.
Trait Implementations§
§impl Clone for DeskLimits
impl Clone for DeskLimits
§fn clone(&self) -> DeskLimits
fn clone(&self) -> DeskLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more