pub enum WebauthnCError {
Show 42 variants
Json,
Cbor,
Unknown,
Security,
NotSupported,
PlatformAuthenticator,
Internal,
ParseNOMFailure,
OpenSSL(String),
ApduConstruction,
ApduTransmission,
InvalidAlgorithm,
InvalidAssertion,
MessageTooLarge,
MessageTooShort,
InvalidMessageLength,
Cancelled,
Ctap(CtapError),
PinTooShort,
PinTooLong,
PinContainsNull,
NoSelectedToken,
MissingRequiredField,
FriendlyNameTooLong,
HidError(HidError),
PcscError(Error),
NoHidDevices,
PoisonedMutex,
Checksum,
StorageCard,
IoError(String),
InvalidCableUrl,
Base10(DecodeError),
BluetoothError(String),
NoBluetoothAdapter,
Closed,
WebsocketError(String),
NonceOverflow,
PermissionDenied,
UserVerificationRequired,
UnexpectedState,
U2F(U2FError),
}Variants§
Json
Cbor
Unknown
Security
NotSupported
PlatformAuthenticator
Internal
ParseNOMFailure
OpenSSL(String)
ApduConstruction
ApduTransmission
InvalidAlgorithm
InvalidAssertion
MessageTooLarge
MessageTooShort
InvalidMessageLength
Message was an unexpected length
Cancelled
Ctap(CtapError)
PinTooShort
The PIN was too short.
PinTooLong
The PIN was too long.
PinContainsNull
The PIN contained a null byte (\0).
NoSelectedToken
MissingRequiredField
The authenticator did not provide a required field. This may indicate a bug in this library, or the authenticator.
FriendlyNameTooLong
The provided friendly_name was too long.
HidError(HidError)
usb only.PcscError(Error)
nfc only.NoHidDevices
No HID devices were detected at all. This may indicate a permissions issue.
PoisonedMutex
See PoisonError; generally indicates that a method holding a prior lock on the mutex failed.
Checksum
The checksum of the value was incorrect.
StorageCard
The card reported as a PC/SC storage card, rather than a smart card.
IoError(String)
InvalidCableUrl
Base10(DecodeError)
cable only.BluetoothError(String)
NoBluetoothAdapter
Closed
Attempt to communicate with an authenticator for which the connection has been closed.
WebsocketError(String)
NonceOverflow
The value of the nonce for this object has exceeded the limit.
PermissionDenied
UserVerificationRequired
User verification was required, but is not available for this authenticator. You may need to set a PIN, or use a different authenticator.
UnexpectedState
The library is in an unexpected state. This could indicate that something has not been initialised correctly, or that the authenticator is sending unexpected messages.
U2F(U2FError)
usb only.Trait Implementations§
source§impl Debug for WebauthnCError
impl Debug for WebauthnCError
source§impl From<CtapError> for WebauthnCError
impl From<CtapError> for WebauthnCError
source§impl From<DecodeError> for WebauthnCError
Available on crate feature cable only.
impl From<DecodeError> for WebauthnCError
cable only.source§fn from(v: DecodeError) -> Self
fn from(v: DecodeError) -> Self
source§impl From<Error> for WebauthnCError
Available on crate feature cable only.
impl From<Error> for WebauthnCError
cable only.source§impl From<Error> for WebauthnCError
Available on crate feature ctap2 only.
impl From<Error> for WebauthnCError
ctap2 only.source§impl From<Error> for WebauthnCError
Available on crate feature nfc only.
impl From<Error> for WebauthnCError
nfc only.source§impl From<Error> for WebauthnCError
Available on crate features bluetooth or cable only.
impl From<Error> for WebauthnCError
bluetooth or cable only.source§impl From<Error> for WebauthnCError
impl From<Error> for WebauthnCError
source§impl From<ErrorStack> for WebauthnCError
Available on crate feature crypto only.
impl From<ErrorStack> for WebauthnCError
crypto only.source§fn from(v: ErrorStack) -> Self
fn from(v: ErrorStack) -> Self
source§impl From<HidError> for WebauthnCError
Available on crate feature usb only.
impl From<HidError> for WebauthnCError
usb only.source§impl<T> From<PoisonError<T>> for WebauthnCError
impl<T> From<PoisonError<T>> for WebauthnCError
source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
source§impl PartialEq for WebauthnCError
impl PartialEq for WebauthnCError
source§fn eq(&self, other: &WebauthnCError) -> bool
fn eq(&self, other: &WebauthnCError) -> bool
self and other values to be equal, and is used
by ==.