Enum rmp::decode::ValueReadError [] [src]

pub enum ValueReadError {
    InvalidMarkerRead(ReadError),
    InvalidDataRead(ReadError),
    TypeMismatch(Marker),
}

Represents an error that can occur when attempting to read a MessagePack'ed complex value from the reader.

Variants

InvalidMarkerRead

Failed to read the marker.

InvalidDataRead

Failed to read the data.

TypeMismatch

The type decoded isn't match with the expected one.

Trait Implementations

impl Error for ValueReadError

fn description(&self) -> &str

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

impl Display for ValueReadError

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

impl From<MarkerReadError> for ValueReadError

fn from(err: MarkerReadError) -> ValueReadError

Derived Implementations

impl Debug for ValueReadError

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