pub enum Error<DbError: Debug> {
    DeSerializingVal(Error),
    DeSerializingKey(Error),
    SerializingValue(Error),
    SerializingKey(Error),
    Database(DbError),
}Expand description
An Error type encapulating various issues that may come up during database operation or (de)serializing
Variants§
DeSerializingVal(Error)
DeSerializingKey(Error)
SerializingValue(Error)
SerializingKey(Error)
Database(DbError)
Trait Implementations§
source§impl<DbError> Error for Error<DbError>where
    DbError: Error + 'static + Debug,
    Self: Debug + Display,
 
impl<DbError> Error for Error<DbError>where DbError: Error + 'static + Debug, Self: Debug + Display,
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()
Auto Trait Implementations§
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