Enum df2::Error [] [src]

pub enum Error {
    InvalidOffset {
        shot_number: u16,
        offset: u16,
    },
    InvalidShotNumber(u16),
    Io(Error),
}

Our custom error enum.

Variants

Shot has an invalid offset.

Fields of InvalidOffset

The shot number is invalid.

Wrapper around std::io::Error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

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. Read more

impl From<Error> for Error
[src]

Performs the conversion.