Enum please::PleaseError
source · 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<PleaseError<P>> for PleaseError<P>
impl<P: PartialEq> PartialEq<PleaseError<P>> for PleaseError<P>
source§fn eq(&self, other: &PleaseError<P>) -> bool
fn eq(&self, other: &PleaseError<P>) -> bool
impl<P> StructuralPartialEq for PleaseError<P>
Auto Trait Implementations§
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
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