Enum tokio_postgres::error::Error [] [src]

pub enum Error<C = Connection> {
    Io(Error),
    Db(Box<DbError>, C),
    Conversion(Box<Error + Sync + Send>, C),
}

A runtime error.

Variants

An error communicating with the database.

IO errors are fatal - the connection is not returned.

An error reported by the database.

An error converting between Rust and Postgres types.

Trait Implementations

impl<C: Debug> Debug for Error<C>
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

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

impl From<Error> for Error
[src]

Performs the conversion.