Struct portmidi::types::MidiEvent
[−]
[src]
pub struct MidiEvent { pub message: MidiMessage, pub timestamp: u32, }
Represents a time stamped midi event. See also MidiMessage
See the PortMidi documentation for how SysEx and midi realtime messages are handled
Fields
message: MidiMessage
timestamp: u32
Trait Implementations
impl Clone for MidiEvent
[src]
fn clone(&self) -> MidiEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for MidiEvent
[src]
impl PartialEq for MidiEvent
[src]
fn eq(&self, __arg_0: &MidiEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MidiEvent) -> bool
This method tests for !=
.
impl Eq for MidiEvent
[src]
impl Debug for MidiEvent
[src]
impl From<PmEvent> for MidiEvent
[src]
fn from(raw: PmEvent) -> Self
Performs the conversion.
impl From<MidiMessage> for MidiEvent
[src]
fn from(msg: MidiMessage) -> Self
Performs the conversion.
impl Into<PmEvent> for MidiEvent
[src]
fn into(self) -> PmEvent
Performs the conversion.