Enum transact::database::error::DatabaseError [−][src]
pub enum DatabaseError {
InitError(String),
ReaderError(String),
WriterError(String),
CorruptionError(String),
NotFoundError(String),
DuplicateEntry,
}
Variants
InitError(String)
Tuple Fields of InitError
0: String
ReaderError(String)
Tuple Fields of ReaderError
0: String
WriterError(String)
Tuple Fields of WriterError
0: String
CorruptionError(String)
Tuple Fields of CorruptionError
0: String
NotFoundError(String)
Tuple Fields of NotFoundError
0: String
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DatabaseError
impl Send for DatabaseError
impl Sync for DatabaseError
impl Unpin for DatabaseError
impl UnwindSafe for DatabaseError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more