Enum postgres::Error [] [src]

pub enum Error {
    DbError(DbError),
    IoError(Error),
    StreamDesynchronized,
    WrongType(Type),
    InvalidColumn,
    WasNull,
    BadResponse,
}

An error encountered when communicating with the Postgres server.

Variants

DbError(DbError)

An error reported by the Postgres server.

IoError(Error)

An error communicating with the Postgres server.

StreamDesynchronized

The communication channel with the Postgres server has desynchronized due to an earlier communications error.

WrongType(Type)

An attempt was made to convert between incompatible Rust and Postgres types.

InvalidColumn

An attempt was made to read from a column that does not exist.

WasNull

A value was NULL but converted to a non-nullable Rust type.

BadResponse

The server returned an unexpected response.

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl Error for Error
[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<DbError> for Error
[src]

fn from(err: DbError) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.