pub enum KeyEncodeError {
Account(AccountEncodeError),
AccountLengthMismatch {
len: usize,
expected: usize,
},
Principal(PrincipalEncodeError),
}Expand description
KeyEncodeError
Errors returned when encoding a key for persistence.
Variants§
Trait Implementations§
Source§impl Debug for KeyEncodeError
impl Debug for KeyEncodeError
Source§impl Display for KeyEncodeError
impl Display for KeyEncodeError
Source§impl Error for KeyEncodeError
impl Error for KeyEncodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<AccountEncodeError> for KeyEncodeError
impl From<AccountEncodeError> for KeyEncodeError
Source§fn from(source: AccountEncodeError) -> Self
fn from(source: AccountEncodeError) -> Self
Converts to this type from the input type.
Source§impl From<KeyEncodeError> for IndexEntryEncodeError
impl From<KeyEncodeError> for IndexEntryEncodeError
Source§fn from(source: KeyEncodeError) -> Self
fn from(source: KeyEncodeError) -> Self
Converts to this type from the input type.
Source§impl From<KeyEncodeError> for IndexInsertError
impl From<KeyEncodeError> for IndexInsertError
Source§fn from(source: KeyEncodeError) -> Self
fn from(source: KeyEncodeError) -> Self
Converts to this type from the input type.
Source§impl From<KeyEncodeError> for IndexRemoveError
impl From<KeyEncodeError> for IndexRemoveError
Source§fn from(source: KeyEncodeError) -> Self
fn from(source: KeyEncodeError) -> Self
Converts to this type from the input type.
Source§impl From<KeyEncodeError> for InternalError
impl From<KeyEncodeError> for InternalError
Source§fn from(err: KeyEncodeError) -> Self
fn from(err: KeyEncodeError) -> Self
Converts to this type from the input type.
Source§impl From<PrincipalEncodeError> for KeyEncodeError
impl From<PrincipalEncodeError> for KeyEncodeError
Source§fn from(source: PrincipalEncodeError) -> Self
fn from(source: PrincipalEncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyEncodeError
impl RefUnwindSafe for KeyEncodeError
impl Send for KeyEncodeError
impl Sync for KeyEncodeError
impl Unpin for KeyEncodeError
impl UnwindSafe for KeyEncodeError
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