Enum bson::DecoderError [] [src]

pub enum DecoderError {
    IoError(Error),
    Utf8Error(Utf8Error),
    UnrecognizedElementType(u8),
    InvalidArrayKey(usizeString),
}

Possible errors that can arise during decoding.

Variants

IoError(Error)Utf8Error(Utf8Error)UnrecognizedElementType(u8)InvalidArrayKey(usizeString)

Trait Implementations

impl Debug for DecoderError
[src]

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

Formats the value using the given formatter.

impl From<Error> for DecoderError
[src]

fn from(err: Error) -> DecoderError

Performs the conversion.

impl From<Utf8Error> for DecoderError
[src]

fn from(err: Utf8Error) -> DecoderError

Performs the conversion.

impl From<Error> for DecoderError
[src]

fn from(err: Error) -> DecoderError

Performs the conversion.

impl Display for DecoderError
[src]

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

Formats the value using the given formatter.

impl Error for DecoderError
[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