Enum midi_msg::ParseError
source · 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 Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for ParseError
impl PartialEq for ParseError
source§fn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
self
and other
values to be equal, and is used
by ==
.