pub enum MidiMessage {
Show 17 variants
NoteOn {
channel: Channel,
key: DataByte,
velocity: DataByte,
},
NoteOff {
channel: Channel,
key: DataByte,
velocity: DataByte,
},
ControlChange {
channel: Channel,
controller: DataByte,
value: DataByte,
},
ProgramChange {
channel: Channel,
program: DataByte,
},
PitchBend {
channel: Channel,
value: PitchBend,
},
PolyKeyPressure {
channel: Channel,
key: DataByte,
pressure: DataByte,
},
ChannelPressure {
channel: Channel,
pressure: DataByte,
},
MtcQuarterFrame(DataByte),
SongPositionPointer(SongPosition),
SongSelect(DataByte),
TuneRequest,
TimingClock,
Start,
Continue,
Stop,
ActiveSensing,
Reset,
}Variants§
NoteOn
NoteOff
ControlChange
ProgramChange
PitchBend
PolyKeyPressure
ChannelPressure
MtcQuarterFrame(DataByte)
SongPositionPointer(SongPosition)
SongSelect(DataByte)
TuneRequest
TimingClock
Start
Continue
Stop
ActiveSensing
Reset
Trait Implementations§
Source§impl Clone for MidiMessage
impl Clone for MidiMessage
Source§fn clone(&self) -> MidiMessage
fn clone(&self) -> MidiMessage
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 MidiMessage
Source§impl Debug for MidiMessage
impl Debug for MidiMessage
Source§impl Display for MidiMessage
impl Display for MidiMessage
impl Eq for MidiMessage
Source§impl From<&MidiMessage> for RawMidiMessage
impl From<&MidiMessage> for RawMidiMessage
Source§fn from(msg: &MidiMessage) -> Self
fn from(msg: &MidiMessage) -> Self
Converts to this type from the input type.
Source§impl From<MidiMessage> for RawMidiMessage
impl From<MidiMessage> for RawMidiMessage
Source§fn from(msg: MidiMessage) -> Self
fn from(msg: MidiMessage) -> Self
Converts to this type from the input type.
Source§impl Hash for MidiMessage
impl Hash for MidiMessage
Source§impl PartialEq for MidiMessage
impl PartialEq for MidiMessage
impl StructuralPartialEq for MidiMessage
Source§impl TryFrom<RawMidiMessage> for MidiMessage
impl TryFrom<RawMidiMessage> for MidiMessage
Source§type Error = CodecError
type Error = CodecError
The type returned in the event of a conversion error.
Source§fn try_from(raw: RawMidiMessage) -> Result<Self, CodecError>
fn try_from(raw: RawMidiMessage) -> Result<Self, CodecError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MidiMessage
impl RefUnwindSafe for MidiMessage
impl Send for MidiMessage
impl Sync for MidiMessage
impl Unpin for MidiMessage
impl UnsafeUnpin for MidiMessage
impl UnwindSafe for MidiMessage
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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