pub enum HIDError {
DeviceError,
UnexpectedInitReplyLen,
NonceMismatch,
DeviceNotInitialized,
DeviceNotSupported,
UnsupportedCommand,
UnexpectedVersion,
IO(Option<PathBuf>, Error),
UnexpectedCmd(u8),
Command(CommandError),
ApduStatus(ApduErrorStatus),
}Variants§
DeviceError
Transport replied with a status not expected
UnexpectedInitReplyLen
NonceMismatch
DeviceNotInitialized
DeviceNotSupported
UnsupportedCommand
UnexpectedVersion
IO(Option<PathBuf>, Error)
UnexpectedCmd(u8)
Command(CommandError)
ApduStatus(ApduErrorStatus)
Trait Implementations§
Source§impl From<CommandError> for HIDError
impl From<CommandError> for HIDError
Source§fn from(e: CommandError) -> HIDError
fn from(e: CommandError) -> HIDError
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.
Auto Trait Implementations§
impl Freeze for HIDError
impl !RefUnwindSafe for HIDError
impl Send for HIDError
impl Sync for HIDError
impl Unpin for HIDError
impl !UnwindSafe for HIDError
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