Enum passkey_types::u2f::ResponseStatusWords
source · #[repr(u16)]pub enum ResponseStatusWords {
NoError = 36_864,
ConditionsNotSatisfied = 27_013,
WrongData = 27_264,
WrongLength = 26_368,
ClaNotSupported = 28_160,
InsNotSupported = 27_904,
}Expand description
ISO 7816-4 Status Words (SW_*)
Values are taken from https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-raw-message-formats-v1.2-ps-20170411.html#h3_status-codes
Variants§
NoError = 36_864
The command completed successfully without error
ConditionsNotSatisfied = 27_013
The request was rejected due to test-of-user-presence being required.
WrongData = 27_264
The request was rejected due to an invalid key handle.
WrongLength = 26_368
The length of the request was invalid.
ClaNotSupported = 28_160
The Class byte of the request is not supported. (i.e. CLA != 0)
InsNotSupported = 27_904
The Instruction of the request is not supported.
Implementations§
source§impl ResponseStatusWords
impl ResponseStatusWords
sourcepub fn as_primitive(self) -> u16
pub fn as_primitive(self) -> u16
Transform a ResponseStatusWords to a u16 as postfix without needing to specify the type.
Trait Implementations§
source§impl Debug for ResponseStatusWords
impl Debug for ResponseStatusWords
source§impl From<ResponseStatusWords> for u16
impl From<ResponseStatusWords> for u16
source§fn from(sw: ResponseStatusWords) -> Self
fn from(sw: ResponseStatusWords) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ResponseStatusWords
impl Send for ResponseStatusWords
impl Sync for ResponseStatusWords
impl Unpin for ResponseStatusWords
impl UnwindSafe for ResponseStatusWords
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