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(StringOid),
}

Returned when the future fails. Might print the SQL in Debug.

Variants

Happens when we don't know how to convert a value to JSON.

Trait Implementations

impl Clone for PgFutureErr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PgFutureErr
[src]

Formats the value using the given formatter.

impl Display for PgFutureErr
[src]

Formats the value using the given formatter.

impl Error for PgFutureErr
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<T> From<PoisonError<T>> for PgFutureErr
[src]

Performs the conversion.

impl From<Utf8Error> for PgFutureErr
[src]

Performs the conversion.

impl From<Error> for PgFutureErr
[src]

Performs the conversion.

impl From<ParseIntError> for PgFutureErr
[src]

Performs the conversion.

impl From<ParseFloatError> for PgFutureErr
[src]

Performs the conversion.

impl<T> From<SendError<T>> for PgFutureErr
[src]

Performs the conversion.

impl From<Error> for PgFutureErr
[src]

Performs the conversion.