Enum xdr_codec::Error [] [src]

pub enum Error {
    IOError(Error),
    InvalidUtf8(FromUtf8Error),
    InvalidCase,
    InvalidEnum,
    InvalidLen,
    Generic(String),
}

XDR errors

This simply amalgamates the various errors which can arise.

Variants

An underlying IO error.

An improperly encoded String.

Encoding discriminated union with a bad (default) case.

Decoding a bad enum value

Array/String too long

Generic error.

Methods

impl Error
[src]

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<String> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl<'a> From<&'a str> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl Send for Error
[src]

impl Sync for Error
[src]

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

Formats the value using the given formatter.