pub enum OtpAuthError {
NotOtpAuth,
UnsupportedType(String),
MissingSecret,
InvalidSecret,
UnsupportedAlgorithm(String),
UnsupportedDigits(u32),
UnsupportedPeriod(u32),
Malformed(&'static str),
}Variants§
NotOtpAuth
UnsupportedType(String)
MissingSecret
InvalidSecret
UnsupportedAlgorithm(String)
UnsupportedDigits(u32)
UnsupportedPeriod(u32)
Malformed(&'static str)
Trait Implementations§
Source§impl Debug for OtpAuthError
impl Debug for OtpAuthError
Source§impl Display for OtpAuthError
impl Display for OtpAuthError
impl Eq for OtpAuthError
Source§impl Error for OtpAuthError
impl Error for OtpAuthError
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 OtpAuthError
impl PartialEq for OtpAuthError
Source§fn eq(&self, other: &OtpAuthError) -> bool
fn eq(&self, other: &OtpAuthError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OtpAuthError
Auto Trait Implementations§
impl Freeze for OtpAuthError
impl RefUnwindSafe for OtpAuthError
impl Send for OtpAuthError
impl Sync for OtpAuthError
impl Unpin for OtpAuthError
impl UnsafeUnpin for OtpAuthError
impl UnwindSafe for OtpAuthError
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