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
ConnectParams(Box<Error + 'static + Sync + Send>)An error relating to connection parameters.
Db(Box<DbError>)An error from the Postgres server itself.
Tls(Box<Error + 'static + Sync + Send>)An error initializing the TLS session.
Io(Error)An error communicating with the server.
Trait Implementations
impl Display for ConnectError[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
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.