Enum ledger_mob_apdu::ApduError
pub enum ApduError {
InvalidLength,
InvalidUtf8,
InvalidVersion(u8),
InvalidEncoding,
}
Expand description
APDU error type
Variants§
InvalidLength
Invalid buffer length
InvalidUtf8
Invalid Utf8 string encoding
InvalidVersion(u8)
Invalid APDU encoding version {0}
InvalidEncoding
Invalid APDU encoding
Trait Implementations§
§impl Error for ApduError
impl Error for ApduError
1.30.0 · 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()
Auto Trait Implementations§
impl RefUnwindSafe for ApduError
impl Send for ApduError
impl Sync for ApduError
impl Unpin for ApduError
impl UnwindSafe for ApduError
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