Trait DeskLimitsSetters
pub trait DeskLimitsSetters: Sized + Holds<DeskLimits> {
// 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§
fn pending_per_source(self, value: usize) -> Self
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.
fn pin_runs_per_source(self, value: usize) -> Self
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.
fn wrong_codes_per_approver(self, value: usize) -> Self
fn wrong_codes_per_approver(self, value: usize) -> Self
Wrong user codes one approver may enter per
approver_window. Default 5.
fn approver_window(self, value: impl Into<Duration>) -> Self
fn approver_window(self, value: impl Into<Duration>) -> Self
The window of wrong_codes_per_approver.
Default 1 minute.
fn wrong_codes_total(self, value: usize) -> Self
fn wrong_codes_total(self, value: usize) -> Self
Wrong user codes all approvers together may enter per
PairingOptions::device_ttl. Default 60.
fn ipv6_prefix(self, value: u8) -> Self
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".