Enum augmented_midi::MIDIMessage
source · 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 copy 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: PartialEq + Borrow<[u8]>> PartialEq for MIDIMessage<Buffer>
impl<Buffer: PartialEq + Borrow<[u8]>> PartialEq for MIDIMessage<Buffer>
source§fn eq(&self, other: &MIDIMessage<Buffer>) -> bool
fn eq(&self, other: &MIDIMessage<Buffer>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Buffer: PartialOrd + Borrow<[u8]>> PartialOrd for MIDIMessage<Buffer>
impl<Buffer: PartialOrd + Borrow<[u8]>> PartialOrd for MIDIMessage<Buffer>
source§fn partial_cmp(&self, other: &MIDIMessage<Buffer>) -> Option<Ordering>
fn partial_cmp(&self, other: &MIDIMessage<Buffer>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Buffer: Eq + Borrow<[u8]>> Eq for MIDIMessage<Buffer>
impl<Buffer: Borrow<[u8]>> StructuralEq for MIDIMessage<Buffer>
impl<Buffer: Borrow<[u8]>> StructuralPartialEq for MIDIMessage<Buffer>
Auto Trait Implementations§
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