Enum coins_ledger::errors::LedgerError
source · pub enum LedgerError {
ResponseTooShort(Vec<u8>),
BadRetcode(APDUResponseCodes),
UnknownAPDUCode(u16),
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
NativeTransportError(NativeTransportError)
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.