pub enum AuthCheck {
Allowed,
LockedOut {
remaining_secs: u64,
},
}Expand description
Result of AuthGuard::check.
Variants§
Allowed
No active lockout — the caller should proceed to actually verify the password.
LockedOut
Currently locked out; reject the auth attempt without checking
the password. remaining_secs is the wall-clock time until
the lockout expires.
Auto Trait Implementations§
impl Freeze for AuthCheck
impl RefUnwindSafe for AuthCheck
impl Send for AuthCheck
impl Sync for AuthCheck
impl Unpin for AuthCheck
impl UnsafeUnpin for AuthCheck
impl UnwindSafe for AuthCheck
Blanket Implementations§
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