Enum tokio_postgres::error::Error
[−]
[src]
pub enum Error<C = Connection> { Io(Error), Db(Box<DbError>, C), Conversion(Box<Error + Sync + Send>, C), }
A runtime error.
Variants
Io(Error)
An error communicating with the database.
IO errors are fatal - the connection is not returned.
Db(Box<DbError>, C)
An error reported by the database.
Conversion(Box<Error + Sync + Send>, C)
An error converting between Rust and Postgres types.
Trait Implementations
impl<C: Debug> Debug for Error<C>
[src]
impl Display for Error
[src]
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