Skip to main content

DeskLimitsSetters

Trait DeskLimitsSetters 

Source
pub trait DeskLimitsSetters: Holds<DeskLimits> + Sized {
    // Required methods
    fn pending(self, value: usize) -> Self;
    fn pending_per_source(self, value: usize) -> Self;
    fn pin_runs_per_source(self, value: usize) -> Self;
    fn wrong_codes_per_approver(self, value: usize) -> Self;
    fn approver_window(self, value: impl Into<Duration>) -> Self;
    fn wrong_codes_total(self, value: usize) -> Self;
    fn ipv6_prefix(self, value: u8) -> Self;
}
Expand description

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

Required Methods§

Source

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

Pairing exchanges in progress at once. Default 32.

Source

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

Pairing 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.

Source

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

PIN 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.

Source

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

Wrong user codes one approver may enter per approver_window. Default 5.

Source

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

The window of wrong_codes_per_approver. Default 1 minute.

Source

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

Wrong user codes all approvers together may enter per PairingOptions::device_ttl. Default 60.

Source

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

The IPv6 prefix length sources are grouped by. Default 64.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> DeskLimitsSetters for __B
where __B: Holds<DeskLimits>,