Enum r2d2_postgres::Error [] [src]

pub enum Error {
    Connect(ConnectError),
    Other(Error),
}

A unified enum of errors returned by postgres::Connection

Variants

Connect

A postgres::error::ConnectError

Other

An postgres::error::Error

Trait Implementations

impl Display for Error

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result