Enum passkey_types::ctap2::U2FError
source · #[non_exhaustive]#[repr(u8)]pub enum U2FError {
Success = 0,
InvalidCommand = 1,
InvalidParameter = 2,
InvalidLength = 3,
InvalidSequence = 4,
Timeout = 5,
ChannelBusy = 6,
LockRequired = 10,
InvalidChannel = 11,
Other = 127,
}Expand description
U2F or CTAP1 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.
Success = 0
Indicates successful response.
InvalidCommand = 1
The command is not a valid CTAP command.
InvalidParameter = 2
The command included an invalid parameter.
InvalidLength = 3
Invalid message or item length.
InvalidSequence = 4
Invalid message sequencing.
Timeout = 5
Message timed out.
ChannelBusy = 6
Channel busy. Client SHOULD retry the request after a short delay. Note that the client MAY abort the transaction if the command is no longer relevant.
LockRequired = 10
Command requires channel lock.
InvalidChannel = 11
Command not allowed on this cid.
Other = 127
Other unspecified error.
Trait Implementations§
source§impl From<U2FError> for StatusCode
impl From<U2FError> for StatusCode
source§impl Ord for U2FError
impl Ord for U2FError
source§impl PartialEq for U2FError
impl PartialEq for U2FError
source§impl PartialOrd for U2FError
impl PartialOrd for U2FError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for U2FError
impl Eq for U2FError
impl StructuralEq for U2FError
impl StructuralPartialEq for U2FError
Auto Trait Implementations§
impl RefUnwindSafe for U2FError
impl Send for U2FError
impl Sync for U2FError
impl Unpin for U2FError
impl UnwindSafe for U2FError
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
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.