Enum coins_ledger::errors::LedgerError
source · pub enum LedgerError {
ResponseTooShort(Vec<u8>),
BadRetcode(APDUResponseCodes),
UnknownAPDUCode(u16),
BackendGone,
NativeTransportError(NativeTransportError),
}
Expand description
APDU-related errors
Variants§
ResponseTooShort(Vec<u8>)
APDU Response was too short
BadRetcode(APDUResponseCodes)
APDU error
UnknownAPDUCode(u16)
Ledger returned an unknown APDU
BackendGone
The backend has been disconnected.
NativeTransportError(NativeTransportError)
Available on non-WebAssembly only.
Native transport error type.
Trait Implementations§
source§impl Debug for LedgerError
impl Debug for LedgerError
source§impl Display for LedgerError
impl Display for LedgerError
source§impl Error for LedgerError
impl Error for LedgerError
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<APDUResponseCodes> for LedgerError
impl From<APDUResponseCodes> for LedgerError
source§fn from(r: APDUResponseCodes) -> Self
fn from(r: APDUResponseCodes) -> Self
Converts to this type from the input type.
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 Freeze for LedgerError
impl !RefUnwindSafe for LedgerError
impl Send for LedgerError
impl Sync for LedgerError
impl Unpin for LedgerError
impl !UnwindSafe for LedgerError
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