Structpostgres::Error [−][src]
pub struct Error(_);
An error communicating with the Postgres server.
Methods
implError
[src]
fncode(&self) ->Option<&SqlState>
[src]
Returns the SQLSTATE error code associated with this error if it is a DBerror.
fnas_connection(&self) ->Option<&(Error + 'static +Send +Sync)>
[src]
Returns the inner error if this is a connection parameter error.
fnas_db(&self) ->Option<&DbError>
[src]
Returns theDbError
associated with this error if it is a DB error.
fnas_conversion(&self) ->Option<&(Error + 'static +Send +Sync)>
[src]
Returns the inner error if this is a conversion error.
fnas_io(&self) ->Option<&Error>
[src]
Returns the innerio::Error
associated with this error if it is an IOerror.
Trait Implementations
implError forError
[src]
fndescription(&self) -> &str
[src]
A short description of the error.Read more
fncause(&self) ->Option<&Error>
[src]
The lower-level cause of this error, if any.Read more
implFrom<Error> forError
[src]
implDebug forError
[src]
fnfmt(&self, __arg_0: &mutFormatter) ->Result<(),Error>
[src]
Formats the value using the given formatter.