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

pub enum Error {
    TypeMismatch(Marker),
    InvalidMarkerRead(ReadError),
    InvalidDataRead(ReadError),
    LengthMismatch(u32),
    Uncategorized(String),
    Syntax(String),
}

Unstable: docs; incomplete

Variants

TypeMismatch

The actual value type isn't equal with the expected one.

InvalidMarkerRead
InvalidDataRead
LengthMismatch
Uncategorized

Uncategorized error.

Syntax

Trait Implementations

impl Error for Error

fn description(&self) -> &str

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

impl Error for Error

fn syntax(msg: &str) -> Error

fn length_mismatch(len: usize) -> Error

fn type_mismatch(ty: Type) -> Error

fn end_of_stream() -> Error

fn missing_field(_field: &str) -> Error

fn unknown_field(_field: &str) -> Error

impl Display for Error

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

impl From<FixedValueReadError> for Error

fn from(err: FixedValueReadError) -> Error

impl From<ValueReadError> for Error

fn from(err: ValueReadError) -> Error

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

Unstable: docs; incomplete

fn from(err: DecodeStringError) -> Error

impl From<MarkerReadError> for Error

fn from(err: MarkerReadError) -> Error

Derived Implementations

impl Debug for Error

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