Struct midi_msg::ReceiverContext[][src]

pub struct ReceiverContext {
    pub previous_channel_message: Option<MidiMsg>,
    pub time_code: TimeCode,
}

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: TimeCode

Implementations

impl ReceiverContext[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for ReceiverContext[src]

impl Debug for ReceiverContext[src]

impl Default for ReceiverContext[src]

impl PartialEq<ReceiverContext> for ReceiverContext[src]

impl StructuralPartialEq for ReceiverContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.