pub enum TwoFactorLoginError {
InvalidInput(ParseError),
StateUnavailable,
Totp(TwoFactorServerError),
BackupUnavailable,
ConsumptionUnavailable,
}Expand description
Distinguishes invalid client input from unavailable verification backends. Submitted tokens, codes, secrets and callback errors are never retained.
Variants§
InvalidInput(ParseError)
The canonical input parser rejected the submitted form.
The account’s stored second-factor state could not be loaded.
Totp(TwoFactorServerError)
Verification could not run because its server-side prerequisites failed.
Atomic recovery-code consumption could not be completed.
The verified TOTP step could not be consumed durably.
Trait Implementations§
Source§impl Debug for TwoFactorLoginError
impl Debug for TwoFactorLoginError
Source§impl Display for TwoFactorLoginError
impl Display for TwoFactorLoginError
Source§impl Error for TwoFactorLoginError
impl Error for TwoFactorLoginError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TwoFactorLoginError
impl RefUnwindSafe for TwoFactorLoginError
impl Send for TwoFactorLoginError
impl Sync for TwoFactorLoginError
impl Unpin for TwoFactorLoginError
impl UnsafeUnpin for TwoFactorLoginError
impl UnwindSafe for TwoFactorLoginError
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