Enum pg_async::PgFutureErr
[−]
[src]
pub enum PgFutureErr {
PoisonError,
SendError(String),
NixError(Error),
Utf8Error(Utf8Error),
Sql(PgSqlErr),
Json(Arc<Error>),
Int(ParseIntError),
Float(ParseFloatError),
UnknownType(String, Oid),
}Returned when the future fails. Might print the SQL in Debug.
Variants
PoisonErrorSendError(String)NixError(Error)Utf8Error(Utf8Error)Sql(PgSqlErr)Json(Arc<Error>)Int(ParseIntError)Float(ParseFloatError)UnknownType(String, Oid)Happens when we don't know how to convert a value to JSON.
Trait Implementations
impl Clone for PgFutureErr[src]
fn clone(&self) -> PgFutureErr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for PgFutureErr[src]
impl Display for PgFutureErr[src]
impl Error for PgFutureErr[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more
impl<T> From<PoisonError<T>> for PgFutureErr[src]
fn from(_err: PoisonError<T>) -> PgFutureErr
Performs the conversion.
impl From<Utf8Error> for PgFutureErr[src]
fn from(err: Utf8Error) -> PgFutureErr
Performs the conversion.
impl From<Error> for PgFutureErr[src]
fn from(err: Error) -> PgFutureErr
Performs the conversion.
impl From<ParseIntError> for PgFutureErr[src]
fn from(err: ParseIntError) -> PgFutureErr
Performs the conversion.
impl From<ParseFloatError> for PgFutureErr[src]
fn from(err: ParseFloatError) -> PgFutureErr
Performs the conversion.
impl<T> From<SendError<T>> for PgFutureErr[src]
fn from(err: SendError<T>) -> PgFutureErr
Performs the conversion.
impl From<Error> for PgFutureErr[src]
fn from(err: Error) -> PgFutureErr
Performs the conversion.