pub enum AuthenticatorError {
Io(Error),
InvalidRelyingPartyInput,
NoConfiguredTransports,
Platform,
InternalError(String),
U2FToken(U2FTokenError),
Custom(String),
VersionMismatch(&'static str, u32),
HIDError(HIDError),
CryptoError,
PinError(PinError),
UnsupportedOption(UnsupportedOption),
}Variants§
Io(Error)
InvalidRelyingPartyInput
NoConfiguredTransports
Platform
InternalError(String)
U2FToken(U2FTokenError)
Custom(String)
VersionMismatch(&'static str, u32)
HIDError(HIDError)
CryptoError
PinError(PinError)
UnsupportedOption(UnsupportedOption)
Implementations§
Source§impl AuthenticatorError
impl AuthenticatorError
pub fn as_u2f_errorcode(&self) -> u8
Trait Implementations§
Source§impl Debug for AuthenticatorError
impl Debug for AuthenticatorError
Source§impl Display for AuthenticatorError
impl Display for AuthenticatorError
Source§impl Error for AuthenticatorError
impl Error for AuthenticatorError
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<CommandError> for AuthenticatorError
impl From<CommandError> for AuthenticatorError
Source§fn from(err: CommandError) -> AuthenticatorError
fn from(err: CommandError) -> AuthenticatorError
Converts to this type from the input type.
Source§impl From<Error> for AuthenticatorError
impl From<Error> for AuthenticatorError
Source§fn from(err: Error) -> AuthenticatorError
fn from(err: Error) -> AuthenticatorError
Converts to this type from the input type.
Source§impl From<HIDError> for AuthenticatorError
impl From<HIDError> for AuthenticatorError
Source§fn from(err: HIDError) -> AuthenticatorError
fn from(err: HIDError) -> AuthenticatorError
Converts to this type from the input type.
Source§impl<T> From<SendError<T>> for AuthenticatorError
impl<T> From<SendError<T>> for AuthenticatorError
Source§fn from(err: SendError<T>) -> AuthenticatorError
fn from(err: SendError<T>) -> AuthenticatorError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthenticatorError
impl !RefUnwindSafe for AuthenticatorError
impl Send for AuthenticatorError
impl Sync for AuthenticatorError
impl Unpin for AuthenticatorError
impl !UnwindSafe for AuthenticatorError
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