Enum passkey_types::ctap2::Ctap2Error
source · #[non_exhaustive]#[repr(u8)]pub enum Ctap2Error {
Show 37 variants
Ok = 0,
CborUnexpectedType = 17,
InvalidCbor = 18,
MissingParameter = 20,
LimitExceeded = 21,
FingerprintDatabaseFull = 23,
LargeBlobStorageFull = 24,
CredentialExcluded = 25,
Processing = 33,
InvalidCredential = 34,
UserActionPending = 35,
OperationPending = 36,
NoOperations = 37,
UnsupportedAlgorithm = 38,
OperationDenied = 39,
KeyStoreFull = 40,
UnsupportedOption = 43,
InvalidOption = 44,
KeepAliveCancel = 45,
NoCredentials = 46,
UserActionTimeout = 47,
NotAllowed = 48,
PinInvalid = 49,
PinBlocked = 50,
PinAuthInvalid = 51,
PinAuthBlocked = 52,
PinNotSet = 53,
PuatRequired = 54,
PinPolicyViolation = 55,
RequestTooLarge = 57,
ActionTimeout = 58,
UserPresenceRequired = 59,
UserVerficationBlocked = 60,
IntegrityFailure = 61,
InvalidSubcommand = 62,
UserVerificationInvalid = 63,
UnauthorizedPermission = 64,
}Expand description
Explicitly defined CTAP2 error variants
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ok = 0
Indicates successful response.
Note that this clashes with
U2FError::Successbut when deserializing fromStatusCodewe will default to this one.
CborUnexpectedType = 17
Invalid/unexpected CBOR error.
InvalidCbor = 18
Error when parsing CBOR.
MissingParameter = 20
Missing non-optional parameter.
LimitExceeded = 21
Limit for number of items exceeded.
FingerprintDatabaseFull = 23
Fingerprint database is full, e.g. during enrollment.
LargeBlobStorageFull = 24
Large blob storage is full. (See § 6.10.3 Large, per-credential blobs.)
CredentialExcluded = 25
Valid credential found in the exclude list.
Processing = 33
Processing (Lengthy operation is in progress).
InvalidCredential = 34
Credential not valid for the authenticator.
UserActionPending = 35
Authentication is waiting for user interaction.
OperationPending = 36
Processing, lengthy operation is in progress.
NoOperations = 37
No request is pending.
UnsupportedAlgorithm = 38
Authenticator does not support requested algorithm.
OperationDenied = 39
Not authorized for requested operation.
KeyStoreFull = 40
Internal key storage is full.
UnsupportedOption = 43
Unsupported option.
InvalidOption = 44
Not a valid option for current operation.
KeepAliveCancel = 45
Pending keep alive was cancelled.
NoCredentials = 46
No valid credentials provided.
UserActionTimeout = 47
A user action timeout occurred.
NotAllowed = 48
Continuation command, such as, authenticatorGetNextAssertion1 not allowed.
Comming soon to an MR near you ↩
PinInvalid = 49
PIN Invalid.
PinBlocked = 50
PIN Blocked.
PinAuthInvalid = 51
PIN authentication,pinUvAuthParam, verification failed.
PinAuthBlocked = 52
PIN authentication using pinUvAuthToken blocked. Requires power cycle to reset.
PinNotSet = 53
No PIN has been set.
PuatRequired = 54
A pinUvAuthToken is required for the selected operation. See also the pinUvAuthToken option ID.
PinPolicyViolation = 55
PIN policy violation. Currently only enforces minimum length.
RequestTooLarge = 57
Authenticator cannot handle this request due to memory constraints.
ActionTimeout = 58
The current operation has timed out.
UserPresenceRequired = 59
User presence is required for the requested operation.
UserVerficationBlocked = 60
Built-in user verification is disabled.
IntegrityFailure = 61
A checksum did not match.
InvalidSubcommand = 62
The requested subcommand is either invalid or not implemented.
UserVerificationInvalid = 63
Built-in user verification unsuccessful. The platform SHOULD retry.
The permissions parameter contains an unauthorized permission.
Trait Implementations§
source§impl Clone for Ctap2Error
impl Clone for Ctap2Error
source§fn clone(&self) -> Ctap2Error
fn clone(&self) -> Ctap2Error
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Ctap2Error
impl Debug for Ctap2Error
source§impl From<Ctap2Error> for Ctap2Code
impl From<Ctap2Error> for Ctap2Code
source§fn from(src: Ctap2Error) -> Self
fn from(src: Ctap2Error) -> Self
source§impl From<Ctap2Error> for StatusCode
impl From<Ctap2Error> for StatusCode
source§fn from(src: Ctap2Error) -> Self
fn from(src: Ctap2Error) -> Self
source§impl From<Ctap2Error> for u8
impl From<Ctap2Error> for u8
source§fn from(src: Ctap2Error) -> Self
fn from(src: Ctap2Error) -> Self
source§impl Ord for Ctap2Error
impl Ord for Ctap2Error
source§fn cmp(&self, other: &Ctap2Error) -> Ordering
fn cmp(&self, other: &Ctap2Error) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for Ctap2Error
impl PartialEq for Ctap2Error
source§fn eq(&self, other: &Ctap2Error) -> bool
fn eq(&self, other: &Ctap2Error) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Ctap2Error
impl PartialOrd for Ctap2Error
source§fn partial_cmp(&self, other: &Ctap2Error) -> Option<Ordering>
fn partial_cmp(&self, other: &Ctap2Error) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for Ctap2Error
impl TryFrom<u8> for Ctap2Error
impl Copy for Ctap2Error
impl Eq for Ctap2Error
impl StructuralEq for Ctap2Error
impl StructuralPartialEq for Ctap2Error
Auto Trait Implementations§
impl RefUnwindSafe for Ctap2Error
impl Send for Ctap2Error
impl Sync for Ctap2Error
impl Unpin for Ctap2Error
impl UnwindSafe for Ctap2Error
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.