Enum postgres::error::ConnectError [] [src]

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

Reasons a new Postgres connection could fail.

Variants

ConnectParams

An error relating to connection parameters.

Db

An error from the Postgres server itself.

Ssl

An error initializing the SSL session.

Io

An error communicating with the server.

Trait Implementations

impl Display for ConnectError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Error for ConnectError
[src]

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl From<Error> for ConnectError
[src]

fn from(err: Error) -> ConnectError

impl From<DbError> for ConnectError
[src]

fn from(err: DbError) -> ConnectError

Derived Implementations

impl Debug for ConnectError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result