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. |