Enum bincode::rustc_serialize::DecodingError [] [src]

pub enum DecodingError {
    IoError(IoError),
    InvalidEncoding(InvalidEncoding),
    SizeLimit,
}

An error that can be produced during decoding.

If decoding from a Buffer, assume that the buffer has been left in an invalid state.

Variants

IoError

If the error stems from the reader that is being used during decoding, that error will be stored and returned here.

InvalidEncoding

If the bytes in the reader are not decodable because of an invalid encoding, this error will be returned. This error is only possible if a stream is corrupted. A stream produced from encode or encode_into should never produce an InvalidEncoding error.

SizeLimit

If decoding a message takes more than the provided size limit, this error is returned.

Trait Implementations

impl Display for DecodingError
[src]

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

Formats the value using the given formatter.

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

impl From<IoError> for DecodingError
[src]

fn from(err: IoError) -> DecodingError

Performs the conversion.

Derived Implementations

impl Debug for DecodingError
[src]

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

Formats the value using the given formatter.