pub enum NativeTransportError {
DeviceNotFound,
CantOpen(HidError),
SequenceMismatch {
got: u16,
expected: u16,
},
Comm(&'static str),
Ioctl(Error),
Io(Error),
Hid(HidError),
UTF8(Utf8Error),
InvalidTermuxUsbFd,
}
Expand description
Ledger transport errors
Variants§
DeviceNotFound
Device not found error
CantOpen(HidError)
Device open error.
SequenceMismatch
SequenceMismatch
Comm(&'static str)
Communication error
Ioctl(Error)
Ioctl error
Io(Error)
i/o error
Hid(HidError)
HID error
UTF8(Utf8Error)
UT8F error
InvalidTermuxUsbFd
Termux USB FD env var does not exist or fails to parse. This error is only returned by android-specific code paths, and may be safely ignored by non-android users
Trait Implementations§
source§impl Debug for NativeTransportError
impl Debug for NativeTransportError
source§impl Display for NativeTransportError
impl Display for NativeTransportError
source§impl Error for NativeTransportError
impl Error for NativeTransportError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Errno> for NativeTransportError
impl From<Errno> for NativeTransportError
source§impl From<Error> for NativeTransportError
impl From<Error> for NativeTransportError
source§impl From<HidError> for NativeTransportError
impl From<HidError> for NativeTransportError
source§impl From<NativeTransportError> for LedgerError
impl From<NativeTransportError> for LedgerError
source§fn from(source: NativeTransportError) -> Self
fn from(source: NativeTransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NativeTransportError
impl Send for NativeTransportError
impl Sync for NativeTransportError
impl Unpin for NativeTransportError
impl !UnwindSafe for NativeTransportError
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