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(Box<Error + Sync + Send>)
An error relating to connection parameters.
Db(Box<DbError>)
An error from the Postgres server itself.
Ssl(Box<Error + Sync + Send>)
An error initializing the SSL session.
Io(Error)
An error communicating with the server.
Trait Implementations
impl Debug for ConnectError
[src]
impl Display for ConnectError
[src]
impl Error for ConnectError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for ConnectError
[src]
fn from(err: Error) -> ConnectError
Performs the conversion.
impl From<DbError> for ConnectError
[src]
fn from(err: DbError) -> ConnectError
Performs the conversion.