pub enum HwiErrorCode {
Show 15 variants
NoDeviceType,
MissingArguments,
UnknownDevice,
BadArgument,
UnsupportedCommand,
DeviceFailure,
DeviceConnectionError,
NeedToBeRoot,
DeviceAlreadyInitialized,
DeviceAlreadyUnlocked,
DeviceNotReady,
DeviceNotInitialized,
HelpText,
ActionCanceled,
InvalidTx,
}Expand description
Error categories mapped to Python HWI’s negative integer codes.
Classification depends on the operation and backend. For example, Ledger
signing or address-display cancellation is reported as device failure
(-13), whereas other backends use action cancellation (-14).
Variants§
NoDeviceType
Neither a device type nor a fingerprint was supplied (-1).
MissingArguments
Required arguments are missing or command-line usage is invalid (-2).
UnknownDevice
An explicitly addressed device type is unknown (-4).
BadArgument
An argument or device-refused input is invalid (-7).
UnsupportedCommand
The command, requested mode, or device operation is unsupported (-9).
DeviceFailure
A device operation failed (-13).
DeviceConnectionError
Device selection, connection, or an unclassified device operation failed (-3).
NeedToBeRoot
Installing udev rules requires root privileges (-16).
DeviceAlreadyInitialized
Setup was requested for an initialized device (-10).
DeviceAlreadyUnlocked
PIN entry was requested for an unlocked device (-11).
DeviceNotReady
A device requires a PIN or passphrase before it can proceed (-12).
DeviceNotInitialized
The device has no initialized wallet (-18).
HelpText
Command-line help was requested (-17).
ActionCanceled
The user canceled or refused an operation (-14).
InvalidTx
The supplied PSBT cannot be parsed (-5).
Trait Implementations§
Source§impl Clone for HwiErrorCode
impl Clone for HwiErrorCode
impl Copy for HwiErrorCode
Source§impl Debug for HwiErrorCode
impl Debug for HwiErrorCode
impl Eq for HwiErrorCode
Source§impl PartialEq for HwiErrorCode
impl PartialEq for HwiErrorCode
impl StructuralPartialEq for HwiErrorCode
Auto Trait Implementations§
impl Freeze for HwiErrorCode
impl RefUnwindSafe for HwiErrorCode
impl Send for HwiErrorCode
impl Sync for HwiErrorCode
impl Unpin for HwiErrorCode
impl UnsafeUnpin for HwiErrorCode
impl UnwindSafe for HwiErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.