Enum rocket_contrib::databases::DbError
source · pub enum DbError<T> {
Custom(T),
PoolError(Error),
}
Expand description
Variants§
Custom(T)
The custom error type to wrap alongside r2d2::Error
.
PoolError(Error)
The error returned by an r2d2 pool.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DbError<T>where
T: Freeze,
impl<T> RefUnwindSafe for DbError<T>where
T: RefUnwindSafe,
impl<T> Send for DbError<T>where
T: Send,
impl<T> Sync for DbError<T>where
T: Sync,
impl<T> Unpin for DbError<T>where
T: Unpin,
impl<T> UnwindSafe for DbError<T>where
T: UnwindSafe,
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
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more