#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Ok = 0

Indicates successful response.

Note that this clashes with U2FError::Success but when deserializing from StatusCode we 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.


  1. 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

§

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.

§

UnauthorizedPermission = 64

The permissions parameter contains an unauthorized permission.

Trait Implementations§

source§

impl Clone for Ctap2Error

source§

fn clone(&self) -> Ctap2Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Ctap2Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Ctap2Error> for Ctap2Code

source§

fn from(src: Ctap2Error) -> Self

Converts to this type from the input type.
source§

impl From<Ctap2Error> for StatusCode

source§

fn from(src: Ctap2Error) -> Self

Converts to this type from the input type.
source§

impl From<Ctap2Error> for u8

source§

fn from(src: Ctap2Error) -> Self

Converts to this type from the input type.
source§

impl Ord for Ctap2Error

source§

fn cmp(&self, other: &Ctap2Error) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Ctap2Error

source§

fn eq(&self, other: &Ctap2Error) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Ctap2Error

source§

fn partial_cmp(&self, other: &Ctap2Error) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<u8> for Ctap2Error

§

type Error = CodeOutOfRange<u8>

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for Ctap2Error

source§

impl Eq for Ctap2Error

source§

impl StructuralEq for Ctap2Error

source§

impl StructuralPartialEq for Ctap2Error

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V