pub enum UsbMidiEventPacketError {
InvalidPacket,
InvalidNote(u8),
InvalidCableNumber(u8),
InvalidCodeIndexNumber(u8),
InvalidEventType(u8),
MissingDataPacket,
EmptyPayload,
InvalidPayloadStatus,
InvalidPayloadSize,
}Expand description
Error variants for parsing the packet.
Variants§
InvalidPacket
Invalid packet.
InvalidNote(u8)
Invalid note.
InvalidCableNumber(u8)
Invalid cable number.
InvalidCodeIndexNumber(u8)
Invalid code index number.
InvalidEventType(u8)
Invalid event type.
MissingDataPacket
Missing data packet.
EmptyPayload
Empty payload.
InvalidPayloadStatus
Invalid payload status.
InvalidPayloadSize
Invalid payload size.
Trait Implementations§
Source§impl Clone for UsbMidiEventPacketError
impl Clone for UsbMidiEventPacketError
Source§fn clone(&self) -> UsbMidiEventPacketError
fn clone(&self) -> UsbMidiEventPacketError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsbMidiEventPacketError
impl Debug for UsbMidiEventPacketError
Source§impl PartialEq for UsbMidiEventPacketError
impl PartialEq for UsbMidiEventPacketError
impl Eq for UsbMidiEventPacketError
impl StructuralPartialEq for UsbMidiEventPacketError
Auto Trait Implementations§
impl Freeze for UsbMidiEventPacketError
impl RefUnwindSafe for UsbMidiEventPacketError
impl Send for UsbMidiEventPacketError
impl Sync for UsbMidiEventPacketError
impl Unpin for UsbMidiEventPacketError
impl UnwindSafe for UsbMidiEventPacketError
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