StatusCode

Enum StatusCode 

Source
pub enum StatusCode {
Show 42 variants OK, InvalidCommand, InvalidParameter, InvalidLength, InvalidSeq, Timeout, ChannelBusy, LockRequired, InvalidChannel, CBORUnexpectedType, InvalidCBOR, MissingParameter, LimitExceeded, UnsupportedExtension, CredentialExcluded, Processing, InvalidCredential, UserActionPending, OperationPending, NoOperations, UnsupportedAlgorithm, OperationDenied, KeyStoreFull, NoOperationPending, UnsupportedOption, InvalidOption, KeepaliveCancel, NoCredentials, UserActionTimeout, NotAllowed, PinInvalid, PinBlocked, PinAuthInvalid, PinAuthBlocked, PinNotSet, PinRequired, PinPolicyViolation, PinTokenExpired, RequestTooLarge, ActionTimeout, UpRequired, Unknown(u8),
}

Variants§

§

OK

Indicates successful response.

§

InvalidCommand

The command is not a valid CTAP command.

§

InvalidParameter

The command included an invalid parameter.

§

InvalidLength

Invalid message or item length.

§

InvalidSeq

Invalid message sequencing.

§

Timeout

Message timed out.

§

ChannelBusy

Channel busy.

§

LockRequired

Command requires channel lock.

§

InvalidChannel

Command not allowed on this cid.

§

CBORUnexpectedType

Invalid/unexpected CBOR error.

§

InvalidCBOR

Error when parsing CBOR.

§

MissingParameter

Missing non-optional parameter.

§

LimitExceeded

Limit for number of items exceeded.

§

UnsupportedExtension

Unsupported extension.

§

CredentialExcluded

Valid credential found in the exclude list.

§

Processing

Processing (Lengthy operation is in progress).

§

InvalidCredential

Credential not valid for the authenticator.

§

UserActionPending

Authentication is waiting for user interaction.

§

OperationPending

Processing, lengthy operation is in progress.

§

NoOperations

No request is pending.

§

UnsupportedAlgorithm

Authenticator does not support requested algorithm.

§

OperationDenied

Not authorized for requested operation.

§

KeyStoreFull

Internal key storage is full.

§

NoOperationPending

No outstanding operations.

§

UnsupportedOption

Unsupported option.

§

InvalidOption

Not a valid option for current operation.

§

KeepaliveCancel

Pending keep alive was cancelled.

§

NoCredentials

No valid credentials provided.

§

UserActionTimeout

Timeout waiting for user interaction.

§

NotAllowed

Continuation command, such as, authenticatorGetNextAssertion not allowed.

§

PinInvalid

PIN Invalid.

§

PinBlocked

PIN Blocked.

§

PinAuthInvalid

PIN authentication,pinAuth, verification failed.

§

PinAuthBlocked

PIN authentication,pinAuth, blocked. Requires power recycle to reset.

§

PinNotSet

No PIN has been set.

§

PinRequired

PIN is required for the selected operation.

§

PinPolicyViolation

PIN policy violation. Currently only enforces minimum length.

§

PinTokenExpired

pinToken expired on authenticator.

§

RequestTooLarge

Authenticator cannot handle this request due to memory constraints.

§

ActionTimeout

The current operation has timed out.

§

UpRequired

User presence is required for the requested operation.

§

Unknown(u8)

Unknown status.

Trait Implementations§

Source§

impl Debug for StatusCode

Source§

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

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

impl From<u8> for StatusCode

Source§

fn from(value: u8) -> StatusCode

Converts to this type from the input type.

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

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.
Source§

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

Source§

fn vzip(self) -> V