#[repr(C)]pub struct DelayScheduleEntry {
pub attempt_count: u32,
pub time_delay: i64,
}
Expand description
Defines a single entry in the table of failed authentication attempt number to authentication delay for a given credential.
Fields§
§attempt_count: u32
The number of successive failed attempts at which this entry begins to apply.
time_delay: i64
The delay before another authentication attempt is allowed. May either be a duration between 1 second and 49710 days to enforce a delay or duration::INFINITE to prevent further authentication attempts.
Trait Implementations§
source§impl Clone for DelayScheduleEntry
impl Clone for DelayScheduleEntry
source§fn clone(&self) -> DelayScheduleEntry
fn clone(&self) -> DelayScheduleEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DelayScheduleEntry
impl Debug for DelayScheduleEntry
source§impl Decode<DelayScheduleEntry> for DelayScheduleEntry
impl Decode<DelayScheduleEntry> for DelayScheduleEntry
source§impl Encode<DelayScheduleEntry> for &DelayScheduleEntry
impl Encode<DelayScheduleEntry> for &DelayScheduleEntry
source§impl Hash for DelayScheduleEntry
impl Hash for DelayScheduleEntry
source§impl Ord for DelayScheduleEntry
impl Ord for DelayScheduleEntry
source§fn cmp(&self, other: &DelayScheduleEntry) -> Ordering
fn cmp(&self, other: &DelayScheduleEntry) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DelayScheduleEntry> for DelayScheduleEntry
impl PartialEq<DelayScheduleEntry> for DelayScheduleEntry
source§fn eq(&self, other: &DelayScheduleEntry) -> bool
fn eq(&self, other: &DelayScheduleEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DelayScheduleEntry> for DelayScheduleEntry
impl PartialOrd<DelayScheduleEntry> for DelayScheduleEntry
source§fn partial_cmp(&self, other: &DelayScheduleEntry) -> Option<Ordering>
fn partial_cmp(&self, other: &DelayScheduleEntry) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for DelayScheduleEntry
impl TypeMarker for DelayScheduleEntry
§type Owned = DelayScheduleEntry
type Owned = DelayScheduleEntry
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for DelayScheduleEntry
impl ValueTypeMarker for DelayScheduleEntry
§type Borrowed<'a> = &'a <DelayScheduleEntry as TypeMarker>::Owned
type Borrowed<'a> = &'a <DelayScheduleEntry as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more