pub struct MidiEvent {
pub message: MidiMessage,
pub timestamp: u32,
}
Expand description
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
sourceimpl From<MidiMessage> for MidiEvent
impl From<MidiMessage> for MidiEvent
sourcefn from(msg: MidiMessage) -> Self
fn from(msg: MidiMessage) -> Self
Converts to this type from the input type.
impl Copy for MidiEvent
impl Eq for MidiEvent
impl StructuralEq for MidiEvent
impl StructuralPartialEq for MidiEvent
Auto Trait Implementations
impl RefUnwindSafe for MidiEvent
impl Send for MidiEvent
impl Sync for MidiEvent
impl Unpin for MidiEvent
impl UnwindSafe for MidiEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more