Struct midi_msg::HighResTimeCode[][src]

pub struct HighResTimeCode {
    pub fractional_frames: u8,
    pub frames: u8,
    pub seconds: u8,
    pub minutes: u8,
    pub hours: u8,
    pub code_type: TimeCodeType,
}

Like TimeCode but includes fractional_frames. Used in TimeCodeCueingSetupMsg.

As defined in the MIDI Time Code spec (MMA0001 / RP004 / RP008)

Fields

fractional_frames: u8

0-99

frames: u8

0-29

seconds: u8

0-59

minutes: u8

0-59

hours: u8

0-23

code_type: TimeCodeType

Implementations

impl HighResTimeCode[src]

pub fn to_bytes(self) -> [u8; 5][src]

Return the five byte representation of the frame: [fractional_frames, frames, seconds, minutes, timecode + hours]

Trait Implementations

impl Clone for HighResTimeCode[src]

impl Copy for HighResTimeCode[src]

impl Debug for HighResTimeCode[src]

impl Default for HighResTimeCode[src]

impl PartialEq<HighResTimeCode> for HighResTimeCode[src]

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