pub struct LockoutConfig {
pub max_failures: u32,
pub window: Duration,
}Fields§
§max_failures: u32Maximum consecutive failures before locking.
window: DurationHow long a lock (or the failure window) lasts.
Implementations§
Source§impl LockoutConfig
impl LockoutConfig
pub fn new(max_failures: u32, window: Duration) -> LockoutConfig
Trait Implementations§
Source§impl Clone for LockoutConfig
impl Clone for LockoutConfig
Source§fn clone(&self) -> LockoutConfig
fn clone(&self) -> LockoutConfig
Returns a duplicate 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 moreimpl Copy for LockoutConfig
Auto Trait Implementations§
impl Freeze for LockoutConfig
impl RefUnwindSafe for LockoutConfig
impl Send for LockoutConfig
impl Sync for LockoutConfig
impl Unpin for LockoutConfig
impl UnsafeUnpin for LockoutConfig
impl UnwindSafe for LockoutConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more