pub enum MidiPacketError {
InvalidCable,
InvalidStatus,
InvalidLength,
InvalidData,
}Expand description
Error constructing a USB-MIDI 1.0 event packet from MIDI bytes.
Variants§
InvalidCable
USB-MIDI 1.0 cable numbers are limited to 0 through 15.
InvalidStatus
The status byte is unsupported or reserved.
InvalidLength
The byte count does not match the MIDI status.
InvalidData
A MIDI data byte has its status bit set.
Trait Implementations§
Source§impl Clone for MidiPacketError
impl Clone for MidiPacketError
Source§fn clone(&self) -> MidiPacketError
fn clone(&self) -> MidiPacketError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MidiPacketError
Source§impl Debug for MidiPacketError
impl Debug for MidiPacketError
impl Eq for MidiPacketError
Source§impl Format for MidiPacketError
impl Format for MidiPacketError
Source§impl From<MidiPacketError> for MidiError
impl From<MidiPacketError> for MidiError
Source§fn from(error: MidiPacketError) -> Self
fn from(error: MidiPacketError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MidiPacketError
impl PartialEq for MidiPacketError
impl StructuralPartialEq for MidiPacketError
Auto Trait Implementations§
impl Freeze for MidiPacketError
impl RefUnwindSafe for MidiPacketError
impl Send for MidiPacketError
impl Sync for MidiPacketError
impl Unpin for MidiPacketError
impl UnsafeUnpin for MidiPacketError
impl UnwindSafe for MidiPacketError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more