Enum theban_db::dberror::DBError []

pub enum DBError {
    Protocol(String),
    FileFormat(String),
    ParseString(String),
    ParseValue(ValueReadError),
    SendValue(ValueWriteError),
    UTF8(FromUtf8Error),
    IO(Error),
}

Variants

Protocol(String)FileFormat(String)ParseString(String)ParseValue(ValueReadError)SendValue(ValueWriteError)UTF8(FromUtf8Error)IO(Error)

Trait Implementations

impl Debug for DBError
[src]

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

Formats the value using the given formatter.

impl Display for DBError

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

Formats the value using the given formatter.

impl Error for DBError

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

impl From<ValueReadError> for DBError

fn from(err: ValueReadError) -> DBError

Performs the conversion.

impl From<ValueWriteError> for DBError

fn from(err: ValueWriteError) -> DBError

Performs the conversion.

impl From<FromUtf8Error> for DBError

fn from(err: FromUtf8Error) -> DBError

Performs the conversion.

impl From<Error> for DBError

fn from(err: Error) -> DBError

Performs the conversion.