pub enum MidiPayload {
Channel(ChannelMessage),
Meta(MetaEvent),
SysEx(SysExEvent),
Raw(RawBytes),
}Expand description
The payload of a MidiEvent: one of the four event families.
Variants§
Channel(ChannelMessage)
A channel-voice message.
Meta(MetaEvent)
A meta event.
SysEx(SysExEvent)
A system-exclusive event.
Raw(RawBytes)
Uninterpreted raw bytes.
Trait Implementations§
Source§impl Clone for MidiPayload
impl Clone for MidiPayload
Source§fn clone(&self) -> MidiPayload
fn clone(&self) -> MidiPayload
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 moreSource§impl Debug for MidiPayload
impl Debug for MidiPayload
impl Eq for MidiPayload
Source§impl Hash for MidiPayload
impl Hash for MidiPayload
Source§impl PartialEq for MidiPayload
impl PartialEq for MidiPayload
Source§fn eq(&self, other: &MidiPayload) -> bool
fn eq(&self, other: &MidiPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MidiPayload
Auto Trait Implementations§
impl Freeze for MidiPayload
impl RefUnwindSafe for MidiPayload
impl Send for MidiPayload
impl Sync for MidiPayload
impl Unpin for MidiPayload
impl UnsafeUnpin for MidiPayload
impl UnwindSafe for MidiPayload
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