Enum rmp::decode::ReadError [] [src]

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

Represents an error that can occur when attempting to read bytes 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 bytes.

Io

I/O error occurred while reading bytes.

Trait Implementations

impl Error for ReadError

fn description(&self) -> &str

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

impl Display for ReadError

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

impl From<Error> for ReadError

fn from(err: Error) -> ReadError

impl From<Error> for ReadError

fn from(err: Error) -> ReadError

impl From<MarkerReadError> for ReadError

fn from(err: MarkerReadError) -> ReadError

Derived Implementations

impl Debug for ReadError

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