pub enum TwoFactorServerError {
Random,
TotpSecretMissing,
TotpDecode,
QrCode,
SystemTime,
}Expand description
Error states returned by server-side two-factor helpers.
Variants§
Random
The operating system could not provide cryptographically secure randomness.
TotpSecretMissing
The supplied TOTP secret was empty.
TotpDecode
The supplied Base32 TOTP secret could not be decoded.
QrCode
The OTPAUTH URI could not be encoded as a QR code.
SystemTime
The system clock is earlier than the Unix epoch.
Trait Implementations§
Source§impl Clone for TwoFactorServerError
impl Clone for TwoFactorServerError
impl Copy for TwoFactorServerError
Source§impl Debug for TwoFactorServerError
impl Debug for TwoFactorServerError
Source§impl Display for TwoFactorServerError
impl Display for TwoFactorServerError
impl Eq for TwoFactorServerError
Source§impl Error for TwoFactorServerError
impl Error for TwoFactorServerError
1.30.0 · 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()
Source§impl PartialEq for TwoFactorServerError
impl PartialEq for TwoFactorServerError
impl StructuralPartialEq for TwoFactorServerError
Auto Trait Implementations§
impl Freeze for TwoFactorServerError
impl RefUnwindSafe for TwoFactorServerError
impl Send for TwoFactorServerError
impl Sync for TwoFactorServerError
impl Unpin for TwoFactorServerError
impl UnsafeUnpin for TwoFactorServerError
impl UnwindSafe for TwoFactorServerError
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