pub enum PleaseError<P> {
Provider(P),
Query(Error),
Expired,
// some variants omitted
}
Expand description
Error type returned by this library
Variants§
Provider(P)
An error occurred whilst obtaining a connection from the connection provider.
Query(Error)
An error occurred whilst querying the database.
Expired
Tried to use a handle which had already expired.
Trait Implementations§
Source§impl<P: Debug> Debug for PleaseError<P>
impl<P: Debug> Debug for PleaseError<P>
Source§impl<P: Error> Display for PleaseError<P>
impl<P: Error> Display for PleaseError<P>
Source§impl<P: Error> Error for PleaseError<P>
impl<P: Error> Error for PleaseError<P>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<P> From<Error> for PleaseError<P>
impl<P> From<Error> for PleaseError<P>
Source§impl<P: PartialEq> PartialEq for PleaseError<P>
impl<P: PartialEq> PartialEq for PleaseError<P>
impl<P> StructuralPartialEq for PleaseError<P>
Auto Trait Implementations§
impl<P> Freeze for PleaseError<P>where
P: Freeze,
impl<P> !RefUnwindSafe for PleaseError<P>
impl<P> Send for PleaseError<P>where
P: Send,
impl<P> Sync for PleaseError<P>where
P: Sync,
impl<P> Unpin for PleaseError<P>where
P: Unpin,
impl<P> !UnwindSafe for PleaseError<P>
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
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