Struct midi_msg::ReceiverContext
source · pub struct ReceiverContext {
pub previous_channel_message: Option<MidiMsg>,
pub time_code: TimeCode,
}Expand description
Passed to MidiMsg::from_midi_with_context to allow
for the capture and use of captured context while reading from a MIDI stream.
This is used to allow for the formation of fully formed MidiMsgs when either a running
status is being employed, or when using 14-bit ControlChange messages.
It’s also used to track the current TimeCode
as sent through SystemCommonMsg::TimeCodeQuarterFrame
messages, or UniversalRealTimeMsg::TimeCodeFull
messages.
Fields§
§previous_channel_message: Option<MidiMsg>§time_code: TimeCodeImplementations§
Trait Implementations§
source§impl Clone for ReceiverContext
impl Clone for ReceiverContext
source§fn clone(&self) -> ReceiverContext
fn clone(&self) -> ReceiverContext
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 Debug for ReceiverContext
impl Debug for ReceiverContext
source§impl Default for ReceiverContext
impl Default for ReceiverContext
source§fn default() -> ReceiverContext
fn default() -> ReceiverContext
Returns the “default value” for a type. Read more
source§impl PartialEq for ReceiverContext
impl PartialEq for ReceiverContext
source§fn eq(&self, other: &ReceiverContext) -> bool
fn eq(&self, other: &ReceiverContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ReceiverContext
Auto Trait Implementations§
impl RefUnwindSafe for ReceiverContext
impl Send for ReceiverContext
impl Sync for ReceiverContext
impl Unpin for ReceiverContext
impl UnwindSafe for ReceiverContext
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