Struct midi_msg::StandardUserBits[][src]

pub struct StandardUserBits {
    pub bytes: (u8, u8, u8, u8),
    pub flag1: bool,
    pub flag2: bool,
    pub secondary_time_code: bool,
}

Like UserBits but allows for the embedding of a “secondary time code”.

As defined in MIDI Machine Control 1.0 (MMA0016 / RP013)

Fields

bytes: (u8, u8, u8, u8)

Full bytes can be used here. Sent such that the first is considered the “most significant” value

flag1: bool

SMPTE time code bit 43 (EBU bit 27)

flag2: bool

SMPTE time code bit 59 (EBU bit 43)

secondary_time_code: bool

Contains a secondary time code

Implementations

impl StandardUserBits[src]

pub fn to_nibbles(&self) -> [u8; 9][src]

Turn the UserBits into its 9 nibble representation: [nibble_1, nibble_2, nibble_3, nibble_4, nibble_5, nibble_6, nibble_7, nibble_8, nibble_9, nibble_flags]

Trait Implementations

impl Clone for StandardUserBits[src]

impl Copy for StandardUserBits[src]

impl Debug for StandardUserBits[src]

impl From<StandardUserBits> for TimeCode[src]

impl From<TimeCode> for StandardUserBits[src]

impl From<UserBits> for StandardUserBits[src]

impl PartialEq<StandardUserBits> for StandardUserBits[src]

impl StructuralPartialEq for StandardUserBits[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.