pub enum Error {
}
Expand description
Errors generated by the library.
Variants§
Secret(String)
Error generated when a secret is not valid base32.
IssuerMismatch(String, String)
Error generated an issuer mismatch is detected.
Issuer(String)
Error generated an issuer contains a colon.
AccountName(String)
Error generated an account name contains a colon.
Step(String)
Error generated step cannot be parsed as a number.
Digits(String)
Error generated digits cannot be parsed as a number.
Algorithm(String)
Error generated when an invalid algorithm is detected.
IssuerDecoding(String)
Error generated when decoding a URL.
Host(String)
Error generated when a URL host is invalid.
Scheme(String)
Error generated when a URL scheme is invalid.
SecretTooSmall(usize)
Error generated when the length of the shared secret is not at least 128 bits.
InvalidDigits(usize)
Error generated when the number of digits is not in the valid range.
Url(ParseError)
Errors generated by the URL library.
Time(SystemTimeError)
Errors generated by the system time.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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