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)
IO error
Utf8(Utf8Error)
UTF8 parse error
Send
Error sending a request to the connection.
Canceled(Canceled)
Communication with the connection was canceled.
Protocol
A protocol error.
Parse(ParseIntError)
There was an integer parse error.
NoAddr
The supplied network address is invalid.
Postgres
An SQL error happened.
Fields of Postgres
message: String | Error message returned by the server. |
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Utf8Error> for Error
[src]
impl From<ParseIntError> for Error
[src]
fn from(e: ParseIntError) -> Self
[src]
Performs the conversion.
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more