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