Enum tokio_postgres::error::ConnectError [] [src]

pub enum ConnectError {
    ConnectParams(Box<Error + 'static + Sync + Send>),
    Db(Box<DbError>),
    Tls(Box<Error + 'static + Sync + Send>),
    Io(Error),
}

Reasons a new Postgres connection could fail.

Variants

An error relating to connection parameters.

An error from the Postgres server itself.

An error initializing the TLS session.

An error communicating with the server.

Trait Implementations

impl Display for ConnectError
[src]

Formats the value using the given formatter. Read more

impl Error for ConnectError
[src]

A short description of the error. Read more

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

impl From<Error> for ConnectError
[src]

Performs the conversion.

impl From<DbError> for ConnectError
[src]

Performs the conversion.

impl Debug for ConnectError
[src]

Formats the value using the given formatter.