pub enum ParseError {
Show 13 variants
UnexpectedEnd,
ContextlessRunningStatus,
NoEndOfSystemExclusiveFlag,
UnexpectedEndOfSystemExclusiveFlag,
SystemExclusiveDisabled,
FileDisabled,
Invalid(&'static str),
NotImplemented(&'static str),
ByteOverflow,
VlqOverflow,
UndefinedSystemCommonMessage(u8),
UndefinedSystemRealTimeMessage(u8),
UndefinedSystemExclusiveMessage(Option<u8>),
}
Expand description
Returned when MidiMsg::from_midi
and similar where not successful.
Variants§
UnexpectedEnd
The given input ended before a MidiMsg
could be fully formed.
ContextlessRunningStatus
Received a non-status byte with no prior channel messages.
NoEndOfSystemExclusiveFlag
Reached end without an End of System Exclusive flag.
UnexpectedEndOfSystemExclusiveFlag
Encountered an unexpected End of System Exclusive flag.
SystemExclusiveDisabled
Received a system exclusive message but the crate was built without the sysex feature.
FileDisabled
Received a meta event message but the crate was built without the file feature.
Invalid(&'static str)
The series of bytes was otherwise invalid.
NotImplemented(&'static str)
Attempted to use a not yet implemented feature.
ByteOverflow
A byte exceeded 7 bits.
VlqOverflow
A variable length quanity exceeded 4 bytes.
UndefinedSystemCommonMessage(u8)
Encountered an undefined system common message
UndefinedSystemRealTimeMessage(u8)
Encountered an undefined system real time message
UndefinedSystemExclusiveMessage(Option<u8>)
Encountered an undefined system exclusive message
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more