pub enum Error<DbError: Debug> {
DeSerializingVal(DecodeError),
DeSerializingKey(DecodeError),
SerializingValue(EncodeError),
SerializingKey(EncodeError),
Database(DbError),
}Expand description
An Error type encapsulating various issues that may come up during database operation or (de)serializing
Variants§
DeSerializingVal(DecodeError)
DeSerializingKey(DecodeError)
SerializingValue(EncodeError)
SerializingKey(EncodeError)
Database(DbError)
Trait Implementations§
Source§impl<DbError: Debug> Error for Error<DbError>
impl<DbError: Debug> Error for Error<DbError>
1.30.0 · 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()
Auto Trait Implementations§
impl<DbError> Freeze for Error<DbError>where
DbError: Freeze,
impl<DbError> !RefUnwindSafe for Error<DbError>
impl<DbError> Send for Error<DbError>where
DbError: Send,
impl<DbError> Sync for Error<DbError>where
DbError: Sync,
impl<DbError> Unpin for Error<DbError>where
DbError: Unpin,
impl<DbError> !UnwindSafe for Error<DbError>
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