pub enum LedgerAppError<E: Error> {
}
Expand description
App Error
Variants§
InvalidVersion
Invalid version error
InvalidEmptyMessage
The message cannot be empty
InvalidChunkPayloadType
Invalid payload type in chunk
InvalidMessageSize
The size fo the message to sign is invalid
InvalidPK
Public Key is invalid
NoSignature
No signature has been returned
InvalidSignature
The signature is not valid
InvalidDerivationPath
The derivation is invalid
TransportError(E)
The derivation is invalid
Crypto
Crypto related errors
Utf8
Utf8 related errors
InvalidFormatID
Format ID error
HexEncode
HexEncode
AppSpecific(u16, String)
Application specific error
Unknown(u16)
Unknown error has occurred
Trait Implementations§
source§impl<E: Clone + Error> Clone for LedgerAppError<E>
impl<E: Clone + Error> Clone for LedgerAppError<E>
source§fn clone(&self) -> LedgerAppError<E>
fn clone(&self) -> LedgerAppError<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de, E> Deserialize<'de> for LedgerAppError<E>where
E: Deserialize<'de> + Error,
impl<'de, E> Deserialize<'de> for LedgerAppError<E>where
E: Deserialize<'de> + Error,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<E> Display for LedgerAppError<E>
impl<E> Display for LedgerAppError<E>
source§impl<E> Error for LedgerAppError<E>
impl<E> Error for LedgerAppError<E>
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<E: Error> From<E> for LedgerAppError<E>
impl<E: Error> From<E> for LedgerAppError<E>
source§impl<E: PartialEq + Error> PartialEq for LedgerAppError<E>
impl<E: PartialEq + Error> PartialEq for LedgerAppError<E>
source§fn eq(&self, other: &LedgerAppError<E>) -> bool
fn eq(&self, other: &LedgerAppError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E> Serialize for LedgerAppError<E>
impl<E> Serialize for LedgerAppError<E>
impl<E: Eq + Error> Eq for LedgerAppError<E>
impl<E: Error> StructuralPartialEq for LedgerAppError<E>
Auto Trait Implementations§
impl<E> Freeze for LedgerAppError<E>where
E: Freeze,
impl<E> RefUnwindSafe for LedgerAppError<E>where
E: RefUnwindSafe,
impl<E> Send for LedgerAppError<E>where
E: Send,
impl<E> Sync for LedgerAppError<E>where
E: Sync,
impl<E> Unpin for LedgerAppError<E>where
E: Unpin,
impl<E> UnwindSafe for LedgerAppError<E>where
E: UnwindSafe,
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