Enum sdc::error::Error [] [src]

pub enum Error {
    Byteorder(Error),
    InvalidHeaderInformation,
    InvalidMajorVersion(u16),
    InvalidTargetType(u8),
    Io(Error),
    Utf8(Utf8Error),
}

Our custom error type.

Variants

Byteorder

Wrapper around a byteorder::Error.

InvalidHeaderInformation

The header information is invalid.

InvalidMajorVersion

The sdc file has an invalid major version number.

InvalidTargetType

The given number cannot be converted to a target type.

Io

Wrapper around std::io::Error.

Utf8

Wrapper around std::str::Error.

Trait Implementations

impl Error for Error

fn description(&self) -> &str

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

impl Display for Error

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

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<Utf8Error> for Error

fn from(err: Utf8Error) -> Error

Derived Implementations

impl Debug for Error

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