pub enum MidiPacketError {
InvalidPacket,
InvalidCableNumber,
EmptyEvent,
InvalidEventStatus,
InvalidEventData,
InvalidEventLength,
InvalidPacketLength,
BufferOverflow,
}Expand description
Packet errors.
Variants§
InvalidPacket
Invalid packet.
InvalidCableNumber
Cable number is out of the allowed range.
EmptyEvent
Event does not contain any data.
InvalidEventStatus
Status byte of the event is invalid.
InvalidEventData
One or more data bytes of the event are invalid.
InvalidEventLength
Event length does not match its status byte.
InvalidPacketLength
Packet does not have a length of 4 bytes.
BufferOverflow
Transfer buffer does not have room for another packet.
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