Enum postgres::error::ConnectError
[−]
[src]
pub enum ConnectError { InvalidUrl(String), MissingUser, DbError(DbError), MissingPassword, UnsupportedAuthentication, NoSslSupport, SslError(Box<Error + Sync + Send>), IoError(Error), }
Reasons a new Postgres connection could fail.
Variants
InvalidUrl(String)
The provided URL could not be parsed.
MissingUser
The URL was missing a user.
DbError(DbError)
An error from the Postgres server itself.
MissingPassword
A password was required but not provided in the URL.
UnsupportedAuthentication
The Postgres server requested an authentication method not supported by the driver.
NoSslSupport
The Postgres server does not support SSL encryption.
SslError(Box<Error + Sync + Send>)
There was an error initializing the SSL session.
IoError(Error)
There was 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.
impl From<Error> for ConnectError
[src]
fn from(err: Error) -> ConnectError
Performs the conversion.