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

pub enum ConnectError {
    BadConnectParams(Box<Error + Sync + Send>),
    MissingUser,
    DbError(Box<DbError>),
    MissingPassword,
    UnsupportedAuthentication,
    NoSslSupport,
    SslError(Box<Error + Sync + Send>),
    IoError(Error),
}

Reasons a new Postgres connection could fail.

Variants

BadConnectParams

An error creating ConnectParams.

MissingUser

The ConnectParams was missing a user.

DbError

An error from the Postgres server itself.

MissingPassword

A password was required but not provided in the ConnectParams.

UnsupportedAuthentication

The Postgres server requested an authentication method not supported by the driver.

NoSslSupport

The Postgres server does not support SSL encryption.

SslError

An error initializing the SSL session.

IoError

An error communicating with the server.

Trait Implementations

impl Display for ConnectError

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

impl Error for ConnectError

fn description(&self) -> &str

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

impl From<Error> for ConnectError

fn from(err: Error) -> ConnectError

impl From<DbError> for ConnectError

fn from(err: DbError) -> ConnectError

impl From<Error> for ConnectError

fn from(err: Error) -> ConnectError

Derived Implementations

impl Debug for ConnectError

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