pub enum Rfc6238Error {
InvalidDigits(usize),
SecretTooSmall(usize),
}
Expand description
Error returned when input is not compliant to rfc-6238.
Variants§
InvalidDigits(usize)
Implementations MUST extract a 6-digit code at a minimum and possibly 7 and 8-digit code.
SecretTooSmall(usize)
The length of the shared secret MUST be at least 128 bits.
Trait Implementations§
Source§impl Debug for Rfc6238Error
impl Debug for Rfc6238Error
Source§impl Display for Rfc6238Error
impl Display for Rfc6238Error
Source§impl Error for Rfc6238Error
impl Error for Rfc6238Error
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 From<Rfc6238Error> for TotpUrlError
impl From<Rfc6238Error> for TotpUrlError
Source§fn from(e: Rfc6238Error) -> Self
fn from(e: Rfc6238Error) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Rfc6238Error
impl PartialEq for Rfc6238Error
impl Eq for Rfc6238Error
impl StructuralPartialEq for Rfc6238Error
Auto Trait Implementations§
impl Freeze for Rfc6238Error
impl RefUnwindSafe for Rfc6238Error
impl Send for Rfc6238Error
impl Sync for Rfc6238Error
impl Unpin for Rfc6238Error
impl UnwindSafe for Rfc6238Error
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