Enum ghakuf::reader::ReadError [] [src]

pub enum ReadError {
    InvalidHeaderTag {
        tag: [u8; 4],
        path: PathBuf,
    },
    InvalidIdentifyCode {
        code: u32,
        path: PathBuf,
    },
    InvalidTrackTag {
        tag: [u8; 4],
        path: PathBuf,
    },
    Io(Error),
    NoValidHandler,
    UnknownMessageStatus {
        status: u8,
        path: PathBuf,
    },
}

An enum represents errors of SMF parser.

Variants

Reads tag error with invalid tag and file path at header.

Fields of InvalidHeaderTag

Reads SMF identify code ([0x00, 0x00, 0x00, 0x06]) error at header.

Fields of InvalidIdentifyCode

Reads tag error with invalid tag and file path at track.

Fields of InvalidTrackTag

Standard file IO error (std::io::Error)

Parser doesn't have any valid handlers.

Reads SMF identify code ([0x00, 0x00, 0x00, 0x06]) error at header.

Fields of UnknownMessageStatus

Trait Implementations

impl Debug for ReadError
[src]

Formats the value using the given formatter.

impl Display for ReadError
[src]

Formats the value using the given formatter. Read more

impl Error for ReadError
[src]

A short description of the error. Read more

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

impl From<Error> for ReadError
[src]

Performs the conversion.