Struct postgres::Error
[−]
[src]
pub struct Error(_);
An error communicating with the Postgres server.
Methods
impl Error
[src]
fn code(&self) -> Option<&SqlState>
[src]
Returns the SQLSTATE error code associated with this error if it is a DB error.
fn as_connection(&self) -> Option<&(Error + 'static + Send + Sync)>
[src]
Returns the inner error if this is a connection parameter error.
fn as_db(&self) -> Option<&DbError>
[src]
Returns the DbError
associated with this error if it is a DB error.
fn as_conversion(&self) -> Option<&(Error + 'static + Send + Sync)>
[src]
Returns the inner error if this is a conversion error.
fn as_io(&self) -> Option<&Error>
[src]
Returns the inner io::Error
associated with this error if it is an IO
error.
Trait Implementations
impl From<Error> for Error
[src]
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
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