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

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

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.

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

Trait Implementations

impl Debug for DeserializeError
[src]

Formats the value using the given formatter.

impl Error for DeserializeError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<IoError> for DeserializeError
[src]

Performs the conversion.

impl From<Error> for DeserializeError
[src]

Performs the conversion.

impl Display for DeserializeError
[src]

Formats the value using the given formatter.

impl Error for DeserializeError
[src]

Raised when there is general error when deserializing a type.

Raised when a Deserialize type unexpectedly hit the end of the stream.

Raised when a Deserialize was passed an incorrect type.

Raised when a Deserialize was passed an incorrect value.

Raised when a fixed sized sequence or map was passed in the wrong amount of arguments. Read more

Raised when a Deserialize enum type received an unexpected variant.

Raised when a Deserialize struct type received an unexpected struct field.

raised when a deserialize struct type did not receive a field.

Raised when a Deserialize struct type received more than one of the same struct field. Read more