Enum rmp::decode::DecodeStringError [] [src]

pub enum DecodeStringError<'a> {
    InvalidMarkerRead(ReadError),
    InvalidDataRead(ReadError),
    TypeMismatch(Marker),
    BufferSizeTooSmall(u32),
    InvalidDataCopy(&'a [u8], ReadError),
    InvalidUtf8(&'a [u8], Utf8Error),
}

Variants

InvalidMarkerRead
InvalidDataRead
TypeMismatch
BufferSizeTooSmall

The given buffer is not large enough to accumulate the specified amount of bytes.

InvalidDataCopy
InvalidUtf8

Trait Implementations

impl<'a> Error for DecodeStringError<'a>

fn description(&self) -> &str

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

impl<'a> Display for DecodeStringError<'a>

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

impl<'a> From<ValueReadError> for DecodeStringError<'a>

fn from(err: ValueReadError) -> DecodeStringError<'a>

Derived Implementations

impl<'a> Debug for DecodeStringError<'a>

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