pub enum ParseError {
UriParseError(ParseError),
WrongScheme(String),
MissingOtpType,
UnknownOtpType(String),
MissingSecret,
SecretParsingError(String),
UnknownAlgorithm(String),
WrongDigitNumber(String),
MissingCounter,
WrongCounter(String),
InvalidPeriod(String),
}Expand description
Different error types of the optauth URI parsing.
Represents each error that could occur while parsing the otpauth URI in an enum. The returned error may have an associated message or url::ParseError with more information
Variants§
UriParseError(ParseError)
WrongScheme(String)
MissingOtpType
UnknownOtpType(String)
MissingSecret
SecretParsingError(String)
UnknownAlgorithm(String)
WrongDigitNumber(String)
MissingCounter
WrongCounter(String)
InvalidPeriod(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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