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
InvalidHeaderTag
Reads tag error with invalid tag and file path at header.
Fields of InvalidHeaderTag
tag: [u8; 4] | |
path: PathBuf |
InvalidIdentifyCode
Reads SMF identify code ([0x00, 0x00, 0x00, 0x06]) error at header.
Fields of InvalidIdentifyCode
code: u32 | |
path: PathBuf |
InvalidTrackTag
Reads tag error with invalid tag and file path at track.
Fields of InvalidTrackTag
tag: [u8; 4] | |
path: PathBuf |
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: u8 | |
path: PathBuf |
Trait Implementations
impl Debug for ReadError
[src]
impl Display for ReadError
[src]
impl Error for ReadError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more