pub enum DbError {
CanNotConnect(String),
CanNotInitTable(&'static str, String),
NotFound(Option<String>),
MutexError,
DeserializationError(String),
Other(String),
}
Variants§
CanNotConnect(String)
CanNotInitTable(&'static str, String)
NotFound(Option<String>)
MutexError
DeserializationError(String)
Other(String)
Trait Implementations§
Source§impl<T> From<PoisonError<T>> for DbError
impl<T> From<PoisonError<T>> for DbError
Source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.
impl Eq for DbError
impl StructuralPartialEq for DbError
Auto Trait Implementations§
impl Freeze for DbError
impl RefUnwindSafe for DbError
impl Send for DbError
impl Sync for DbError
impl Unpin for DbError
impl UnwindSafe for 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