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

pub enum ReadError<'a> {
    InvalidHeaderTag {
        tag: [u8; 4],
        path: &'a Path,
    },
    InvalidIdentifyCode {
        code: u32,
        path: &'a Path,
    },
    InvalidTrackTag {
        tag: [u8; 4],
        path: &'a Path,
    },
    Io(Error),
    NoValidHandler,
    UnknownMessageStatus {
        status: u8,
        path: &'a Path,
    },
}

An enum represents errors of SMF parser.

Variants

InvalidHeaderTag

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

Fields of InvalidHeaderTag

tag: [u8; 4]path: &'a Path
InvalidIdentifyCode

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

Fields of InvalidIdentifyCode

code: u32path: &'a Path
InvalidTrackTag

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

Fields of InvalidTrackTag

tag: [u8; 4]path: &'a Path
Io(Error)

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

NoValidHandler

Parser doesn't have any valid handlers.

UnknownMessageStatus

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

Fields of UnknownMessageStatus

status: u8path: &'a Path

Trait Implementations

impl<'a> Debug for ReadError<'a>[src]

impl<'a> Display for ReadError<'a>[src]

impl<'a> Error for ReadError<'a>[src]

impl<'a> From<Error> for ReadError<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ReadError<'a>

impl<'a> Send for ReadError<'a>

impl<'a> Sync for ReadError<'a>

impl<'a> Unpin for ReadError<'a>

impl<'a> !UnwindSafe for ReadError<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.