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 MidiMsg
s 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: TimeCode
Implementations
Trait Implementations
sourceimpl Clone for ReceiverContext
impl Clone for ReceiverContext
sourcefn clone(&self) -> ReceiverContext
fn clone(&self) -> ReceiverContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ReceiverContext
impl Debug for ReceiverContext
sourceimpl Default for ReceiverContext
impl Default for ReceiverContext
sourcefn default() -> ReceiverContext
fn default() -> ReceiverContext
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ReceiverContext> for ReceiverContext
impl PartialEq<ReceiverContext> for ReceiverContext
sourcefn eq(&self, other: &ReceiverContext) -> bool
fn eq(&self, other: &ReceiverContext) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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