Struct midi_msg::TimeCode [−][src]
Used to synchronize device positions, by SystemCommonMsg::TimeCodeQuarterFrameX
as well as UniversalRealTimeMsg::TimeCodeFull.
Based on the SMTPE time code standard.
As defined in the MIDI Time Code spec (MMA0001 / RP004 / RP008)
Fields
frames: u8The position in frames, 0-29
seconds: u8The position in seconds, 0-59
minutes: u8The position in minutes, 0-59
hours: u8The position in hours, 0-23
code_type: TimeCodeTypeImplementations
impl TimeCode[src]
pub fn to_bytes(self) -> [u8; 4][src]
Return the four byte representation of the frame: [frame, seconds, minutes, timecode + hours]
pub fn to_nibbles(self) -> [u8; 8][src]
Return an 8 byte, Quarter Frame representation of the Frame
Trait Implementations
impl Clone for TimeCode[src]
impl Copy for TimeCode[src]
impl Debug for TimeCode[src]
impl Default for TimeCode[src]
impl From<StandardUserBits> for TimeCode[src]
fn from(t: StandardUserBits) -> Self[src]
impl From<TimeCode> for StandardTimeCode[src]
impl From<TimeCode> for StandardUserBits[src]
impl PartialEq<TimeCode> for TimeCode[src]
impl StructuralPartialEq for TimeCode[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeCode
impl Send for TimeCode
impl Sync for TimeCode
impl Unpin for TimeCode
impl UnwindSafe for TimeCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,