pub enum WalletErrorKind {
Ble,
Workflow,
Device,
Validation,
Timeout,
ActionCancelled,
DeviceLocked,
DeviceBusy,
ConnectionConfirmationRequired,
PairingRequired,
Disconnected,
Unsupported,
}Expand description
Failure classes an app can map to distinct screens without matching message text.
Variants§
Ble
Workflow
Device
Validation
Timeout
ActionCancelled
The user rejected the request on the device, or cancelled PIN entry.
DeviceLocked
The device is locked and expects PIN entry.
DeviceBusy
The device is busy with another action.
ConnectionConfirmationRequired
The device must confirm this host’s connection before continuing.
PairingRequired
The device no longer knows this host; pair again.
Disconnected
The BLE link dropped during the operation.
Unsupported
The firmware does not support the request; it may be too old.
Trait Implementations§
Source§impl Clone for WalletErrorKind
impl Clone for WalletErrorKind
Source§fn clone(&self) -> WalletErrorKind
fn clone(&self) -> WalletErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WalletErrorKind
Source§impl Debug for WalletErrorKind
impl Debug for WalletErrorKind
impl Eq for WalletErrorKind
Source§impl From<&BackendError> for WalletErrorKind
impl From<&BackendError> for WalletErrorKind
Source§fn from(error: &BackendError) -> WalletErrorKind
fn from(error: &BackendError) -> WalletErrorKind
Converts to this type from the input type.
Source§impl From<&BleError> for WalletErrorKind
impl From<&BleError> for WalletErrorKind
Source§fn from(error: &BleError) -> WalletErrorKind
fn from(error: &BleError) -> WalletErrorKind
Converts to this type from the input type.
Source§impl From<&ThpWorkflowError> for WalletErrorKind
impl From<&ThpWorkflowError> for WalletErrorKind
Source§fn from(error: &ThpWorkflowError) -> WalletErrorKind
fn from(error: &ThpWorkflowError) -> WalletErrorKind
Converts to this type from the input type.
Source§impl PartialEq for WalletErrorKind
impl PartialEq for WalletErrorKind
impl StructuralPartialEq for WalletErrorKind
Auto Trait Implementations§
impl Freeze for WalletErrorKind
impl RefUnwindSafe for WalletErrorKind
impl Send for WalletErrorKind
impl Sync for WalletErrorKind
impl Unpin for WalletErrorKind
impl UnsafeUnpin for WalletErrorKind
impl UnwindSafe for WalletErrorKind
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