Enum xdr_codec::Error
[−]
[src]
pub enum Error { Byteorder(Error), IOError(Error), InvalidUtf8(FromUtf8Error), InvalidCase, InvalidEnum, Generic(String), }
XDR errors
This simply amalgamates the various errors which can arise.
Variants
Byteorder(Error)
Byte order packing problem - generally a premature EOF.
IOError(Error)
An underlying IO error.
InvalidUtf8(FromUtf8Error)
An improperly encoded String.
InvalidCase
Encoding discriminated union with a bad (default) case.
InvalidEnum
Decoding a bad enum value
Generic(String)
Generic error.
Methods
impl Error
[src]
fn invalidcase() -> Error
fn invalidenum() -> Error
fn badutf8(err: FromUtf8Error) -> Error
fn byteorder(berr: Error) -> Error
Trait Implementations
impl Debug for Error
[src]
impl From<String> for Error
[src]
impl From<Error> for Error
[src]
impl<'a> From<&'a str> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(err: FromUtf8Error) -> Self
Performs the conversion.
impl From<Error> for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more