Enum bincode::serde::DeserializeError [] [src]

pub enum DeserializeError {
    IoError(IoError),
    InvalidEncoding(InvalidEncoding),
    SizeLimit,
    Serde(Error),
}

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.

Serde

Trait Implementations

impl Error for DeserializeError

fn description(&self) -> &str

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

impl From<IoError> for DeserializeError

fn from(err: IoError) -> DeserializeError

impl From<ByteOrderError> for DeserializeError

fn from(err: ByteOrderError) -> DeserializeError

impl From<Error> for DeserializeError

fn from(err: Error) -> DeserializeError

impl Display for DeserializeError

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

impl Error for DeserializeError

fn custom<T: Into<String>>(desc: T) -> DeserializeError

fn end_of_stream() -> DeserializeError

fn invalid_type(ty: Type) -> Self

fn invalid_value(msg: &str) -> Self

fn invalid_length(len: usize) -> Self

fn unknown_variant(field: &str) -> Self

fn unknown_field(field: &str) -> Self

fn missing_field(field: &'static str) -> Self

Derived Implementations

impl Debug for DeserializeError

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