pub enum TotpUrlError {
}
Expand description
Errors returned mostly upon decoding URL.
Variants§
Url(ParseError)
Available on crate feature
otpauth
only.Couldn’t decode URL.
Scheme(String)
Invalid scheme.
Host(String)
Invalid host.
Secret(String)
Wrong base32 input.
SecretSize(usize)
Invalid secret size. (Too short?)
Algorithm(String)
Unknown algorithm.
Digits(String)
Characters should only be digits.
DigitsNumber(usize)
Digits should be between 6 and 8.
Step(String)
Couldn’t decode step into a number.
Issuer(String)
Issuer contains invalid character :
.
IssuerDecoding(String)
Couldn’t decode issuer.
IssuerMistmatch(String, String)
Issuers should be the same.
AccountName(String)
Account name contains invalid character :
or couldn’t be decoded.
AccountNameDecoding(String)
Couldn’t parse account name.
Trait Implementations§
Source§impl Debug for TotpUrlError
impl Debug for TotpUrlError
Source§impl Display for TotpUrlError
impl Display for TotpUrlError
Source§impl Error for TotpUrlError
impl Error for TotpUrlError
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 TotpUrlError
impl PartialEq for TotpUrlError
impl Eq for TotpUrlError
impl StructuralPartialEq for TotpUrlError
Auto Trait Implementations§
impl Freeze for TotpUrlError
impl RefUnwindSafe for TotpUrlError
impl Send for TotpUrlError
impl Sync for TotpUrlError
impl Unpin for TotpUrlError
impl UnwindSafe for TotpUrlError
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