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

InvalidMarkerRead

Failed to read the type marker value.

InvalidLengthRead

Failed to read string/array/map size.

InvalidDataRead

Failed to read packed non-marker data.

InvalidLengthSize

Failed to cast the length read to machine size.

InvalidUtf8

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

Contains untouched bytearray with the underlying decoding error.

InvalidExtTypeRead

Failed to read ext type.

TypeMismatch

Using Reserved type found.

Trait Implementations

impl<'r> Error for Error<'r>

fn description(&self) -> &str

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

impl<'r> Display for Error<'r>

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

impl<'r> From<MarkerReadError> for Error<'r>

fn from(err: MarkerReadError) -> Error<'r>

Derived Implementations

impl<'r> Debug for Error<'r>

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