pub enum MIDIMessage<Buffer: Borrow<[u8]>> {
Show 18 variants
NoteOn(MIDIMessageNote),
NoteOff(MIDIMessageNote),
PolyphonicKeyPressure {
channel: u8,
note: u8,
pressure: u8,
},
ControlChange {
channel: u8,
controller_number: u8,
value: u8,
},
ProgramChange {
channel: u8,
program_number: u8,
},
ChannelPressure {
channel: u8,
pressure: u8,
},
PitchWheelChange {
channel: u8,
value: u16,
},
SysExMessage(MIDISysExEvent<Buffer>),
SongPositionPointer {
beats: u16,
},
SongSelect {
song: u8,
},
TuneRequest,
TimingClock,
Start,
Continue,
Stop,
ActiveSensing,
Reset,
Other {
status: u8,
},
}Expand description
Represents a MIDI message
Variants§
NoteOn(MIDIMessageNote)
NoteOff(MIDIMessageNote)
PolyphonicKeyPressure
ControlChange
ProgramChange
ChannelPressure
PitchWheelChange
SysExMessage(MIDISysExEvent<Buffer>)
SongPositionPointer
SongSelect
TuneRequest
TimingClock
Start
Continue
Stop
ActiveSensing
Reset
Other
Implementations§
Source§impl<Buffer: Borrow<[u8]>> MIDIMessage<Buffer>
impl<Buffer: Borrow<[u8]>> MIDIMessage<Buffer>
Trait Implementations§
Source§impl<Buffer: Clone + Borrow<[u8]>> Clone for MIDIMessage<Buffer>
impl<Buffer: Clone + Borrow<[u8]>> Clone for MIDIMessage<Buffer>
Source§fn clone(&self) -> MIDIMessage<Buffer>
fn clone(&self) -> MIDIMessage<Buffer>
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<Buffer: Ord + Borrow<[u8]>> Ord for MIDIMessage<Buffer>
impl<Buffer: Ord + Borrow<[u8]>> Ord for MIDIMessage<Buffer>
Source§fn cmp(&self, other: &MIDIMessage<Buffer>) -> Ordering
fn cmp(&self, other: &MIDIMessage<Buffer>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Buffer: PartialOrd + Borrow<[u8]>> PartialOrd for MIDIMessage<Buffer>
impl<Buffer: PartialOrd + Borrow<[u8]>> PartialOrd for MIDIMessage<Buffer>
impl<Buffer: Eq + Borrow<[u8]>> Eq for MIDIMessage<Buffer>
impl<Buffer: Borrow<[u8]>> StructuralPartialEq for MIDIMessage<Buffer>
Auto Trait Implementations§
impl<Buffer> Freeze for MIDIMessage<Buffer>where
Buffer: Freeze,
impl<Buffer> RefUnwindSafe for MIDIMessage<Buffer>where
Buffer: RefUnwindSafe,
impl<Buffer> Send for MIDIMessage<Buffer>where
Buffer: Send,
impl<Buffer> Sync for MIDIMessage<Buffer>where
Buffer: Sync,
impl<Buffer> Unpin for MIDIMessage<Buffer>where
Buffer: Unpin,
impl<Buffer> UnwindSafe for MIDIMessage<Buffer>where
Buffer: UnwindSafe,
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