Enum theban_db::dberror::DBError [] [src]

pub enum DBError<'a> {
    ProtocolError(String),
    FileFormatError(String),
    ParseStringError(DecodeStringError<'a>),
    ParseValueError(ValueReadError),
    SendValueError(ValueWriteError),
    UTF8Error(FromUtf8Error),
    IOError(Error),
    SyncError,
}

Variants

ProtocolError(String)FileFormatError(String)ParseStringError(DecodeStringError<'a>)ParseValueError(ValueReadError)SendValueError(ValueWriteError)UTF8Error(FromUtf8Error)IOError(Error)SyncError

Trait Implementations

impl<'a> Debug for DBError<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> From<DecodeStringError<'a>> for DBError<'a>
[src]

fn from(err: DecodeStringError<'a>) -> DBError<'a>

Performs the conversion.

impl<'a> From<ValueReadError> for DBError<'a>
[src]

fn from(err: ValueReadError) -> DBError<'a>

Performs the conversion.

impl<'a> From<ValueWriteError> for DBError<'a>
[src]

fn from(err: ValueWriteError) -> DBError<'a>

Performs the conversion.

impl<'a> From<FromUtf8Error> for DBError<'a>
[src]

fn from(err: FromUtf8Error) -> DBError<'a>

Performs the conversion.

impl<'a> From<Error> for DBError<'a>
[src]

fn from(err: Error) -> DBError<'a>

Performs the conversion.

impl<'a, T> From<PoisonError<T>> for DBError<'a>
[src]

fn from(_: PoisonError<T>) -> DBError<'a>

Performs the conversion.

impl<'a> Display for DBError<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> Error for DBError<'a>
[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