Enum ledger_apdu::APDUAnswerError
source · pub enum APDUAnswerError {
TooShort,
}
Expand description
Error interpreting bytes as an APDU answer
Variants§
TooShort
Passed APDU answer was less than the minimum 2 bytes required for the return code
Trait Implementations§
source§impl Debug for APDUAnswerError
impl Debug for APDUAnswerError
source§impl Display for APDUAnswerError
impl Display for APDUAnswerError
source§impl Error for APDUAnswerError
impl Error for APDUAnswerError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for APDUAnswerError
impl ErrorCompat for APDUAnswerError
source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresource§impl PartialEq for APDUAnswerError
impl PartialEq for APDUAnswerError
source§fn eq(&self, other: &APDUAnswerError) -> bool
fn eq(&self, other: &APDUAnswerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for APDUAnswerError
impl StructuralPartialEq for APDUAnswerError
Auto Trait Implementations§
impl Freeze for APDUAnswerError
impl RefUnwindSafe for APDUAnswerError
impl Send for APDUAnswerError
impl Sync for APDUAnswerError
impl Unpin for APDUAnswerError
impl UnwindSafe for APDUAnswerError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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