pub enum Command {
Register,
Authenticate,
Version,
Unsuported(u8),
}Expand description
U2F command, determined at the INS position,
Anything between the values 0x40-0xbf are vendor specific and therefore unsupported.
This Enum does not #[repr(u8)] with discriminant values since we cannot currently have tuple
variants in those enums until https://github.com/rust-lang/rust/issues/60553 stabilizes.
Variants§
Register
Value of 0x01 with parameters of P1 = 0x00, P2 = 0x00
Authenticate
Value of 0x02 with parameters of P1 = 0x03|0x07|0x08, P2 = 0x00
Version
Value of 0x03 with parameters of P1 = 0x00, P2 = 0x00
Unsuported(u8)
Unsupported command value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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