Enum rmp::decode::MarkerReadError [] [src]

pub enum MarkerReadError {
    UnexpectedEOF,
    Io(Error),
}

Represents an error that can occur when attempting to read a MessagePack marker from the reader.

This is a thin wrapper over the standard io::Error type. Namely, it adds one additional error case: an unexpected EOF.

Variants

UnexpectedEOF

Unexpected end of file reached while reading the marker.

Io

I/O error occurred while reading the marker.

Trait Implementations

impl Error for MarkerReadError

fn description(&self) -> &str

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

impl Display for MarkerReadError

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

impl From<Error> for MarkerReadError

fn from(err: Error) -> MarkerReadError

Derived Implementations

impl Debug for MarkerReadError

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