Enum rmp::decode::value_ref::Error [] [src]

pub enum Error<'r> {
    InvalidMarkerRead(ReadError),
    InvalidLengthRead(ReadError),
    InvalidDataRead(ReadError),
    InvalidLengthSize,
    InvalidUtf8(&'r [u8]Utf8Error),
    InvalidExtTypeRead(ReadError),
    TypeMismatch,
}

Variants

Failed to read the type marker value.

Failed to read string/array/map size.

Failed to read packed non-marker data.

Failed to cast the length read to machine size.

Failed to interpret a byte slice as a UTF-8 string.

Contains untouched bytearray with the underlying decoding error.

Failed to read ext type.

Using Reserved type found.

Trait Implementations

impl<'r> Debug for Error<'r>
[src]

Formats the value using the given formatter.

impl<'r> Error for Error<'r>
[src]

A short description of the error. Read more

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

impl<'r> Display for Error<'r>
[src]

Formats the value using the given formatter.

impl<'r> From<MarkerReadError> for Error<'r>
[src]

Performs the conversion.