Enum pleingres::Error [] [src]

pub enum Error {
    IO(Error),
    Utf8(Utf8Error),
    Send,
    Canceled(Canceled),
    Protocol,
    Parse(ParseIntError),
    NoAddr,
    Postgres {
        message: String,
    },
}

Errors.

Variants

IO error

UTF8 parse error

Error sending a request to the connection.

Communication with the connection was canceled.

A protocol error.

There was an integer parse error.

The supplied network address is invalid.

An SQL error happened.

Fields of Postgres

Error message returned by the server.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

[src]

Performs the conversion.

impl From<ParseIntError> for Error
[src]

[src]

Performs the conversion.

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl<R> From<SendError<R>> for Error
[src]

[src]

Performs the conversion.

impl From<Canceled> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error