pub struct App<'t> { /* private fields */ }
Implementations§
source§impl App<'_>
impl App<'_>
pub const BOOT_TO_BOOTROM_COMMAND: u8 = 81u8
pub const REBOOT_COMMAND: u8 = 83u8
pub const VERSION_COMMAND: u8 = 97u8
pub const UUID_COMMAND: u8 = 98u8
pub const WINK_COMMAND: u8 = 8u8
pub const LOCKED_COMMAND: u8 = 99u8
sourcepub fn maintenance(&mut self) -> Result<()>
pub fn maintenance(&mut self) -> Result<()>
Reboot the Solo 2 to maintenance mode (LPC 55 bootloader).
NOTE: This command requires user confirmation (by tapping the device). Current firmware implementation has no timeout, so if the user aborts the operation host-side, the device is “stuck” until replug.
Rebooting can cause the connection to return error, which should be special-cased by the caller.
sourcepub fn reboot(&mut self) -> Result<()>
pub fn reboot(&mut self) -> Result<()>
Reboot the Solo 2 normally.
Rebooting can cause the connection to return error, which should be special-cased by the caller.
sourcepub fn uuid(&mut self) -> Result<Uuid>
pub fn uuid(&mut self) -> Result<Uuid>
The UUID of the device.
This can be fetched in multiple other ways, and is also visible in bootloader mode. Responding successfully to this command is our criterion for treating a smartcard as a Solo 2 device.
NB: In early firmware, this command isn’t implemented on the CTAP transport.
sourcepub fn version(&mut self) -> Result<Version>
pub fn version(&mut self) -> Result<Version>
The version of the Firmware currently running on the Solo 2.
sourcepub fn wink(&mut self) -> Result<()>
pub fn wink(&mut self) -> Result<()>
Send the wink command (which fido-authenticator does not implement).