pub enum StorageError<Enc: Encoding> {
KeySerialize(KeySerializeError),
KeyDeserialize(KeyDeserializeError),
ValueSerialize(Enc::EncodeError),
ValueDeserialize(Enc::DecodeError),
}
Variants§
KeySerialize(KeySerializeError)
KeyDeserialize(KeyDeserializeError)
ValueSerialize(Enc::EncodeError)
ValueDeserialize(Enc::DecodeError)
Trait Implementations§
Source§impl<Enc: Encoding> Display for StorageError<Enc>
impl<Enc: Encoding> Display for StorageError<Enc>
Source§impl<Enc: Encoding> Error for StorageError<Enc>
impl<Enc: Encoding> Error for StorageError<Enc>
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<Enc: Encoding> From<KeyDeserializeError> for StorageError<Enc>
impl<Enc: Encoding> From<KeyDeserializeError> for StorageError<Enc>
Source§fn from(source: KeyDeserializeError) -> Self
fn from(source: KeyDeserializeError) -> Self
Converts to this type from the input type.
Source§impl<Enc: Encoding> From<KeySerializeError> for StorageError<Enc>
impl<Enc: Encoding> From<KeySerializeError> for StorageError<Enc>
Source§fn from(source: KeySerializeError) -> Self
fn from(source: KeySerializeError) -> Self
Converts to this type from the input type.
impl<Enc: Eq + Encoding> Eq for StorageError<Enc>
impl<Enc: Encoding> StructuralPartialEq for StorageError<Enc>
Auto Trait Implementations§
impl<Enc> Freeze for StorageError<Enc>
impl<Enc> RefUnwindSafe for StorageError<Enc>
impl<Enc> Send for StorageError<Enc>
impl<Enc> Sync for StorageError<Enc>
impl<Enc> Unpin for StorageError<Enc>
impl<Enc> UnwindSafe for StorageError<Enc>
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