pub enum StatusUpdate {
DeviceAvailable {
dev_info: U2FDeviceInfo,
},
DeviceUnavailable {
dev_info: U2FDeviceInfo,
},
Success {
dev_info: U2FDeviceInfo,
},
PinError(PinError, Sender<Pin>),
SelectDeviceNotice,
DeviceSelected(U2FDeviceInfo),
}Variants§
DeviceAvailable
Device found
Fields
§
dev_info: U2FDeviceInfoDevice got removed
Success
We successfully finished the register or sign request
Fields
§
dev_info: U2FDeviceInfoPinError(PinError, Sender<Pin>)
Sent if a PIN is needed (or was wrong), or some other kind of PIN-related error occurred. The Sender is for sending back a PIN (if needed).
SelectDeviceNotice
Sent, if multiple devices are found and the user has to select one
DeviceSelected(U2FDeviceInfo)
Sent, once a device was selected (either automatically or by user-interaction) and the register or signing process continues with this device
Trait Implementations§
Source§impl Debug for StatusUpdate
impl Debug for StatusUpdate
Auto Trait Implementations§
impl Freeze for StatusUpdate
impl RefUnwindSafe for StatusUpdate
impl Send for StatusUpdate
impl Sync for StatusUpdate
impl Unpin for StatusUpdate
impl UnsafeUnpin for StatusUpdate
impl UnwindSafe for StatusUpdate
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