pub struct TimeCode {
pub frames: u8,
pub seconds: u8,
pub minutes: u8,
pub hours: u8,
pub code_type: TimeCodeType,
}
Expand description
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: u8
The position in frames, 0-29
seconds: u8
The position in seconds, 0-59
minutes: u8
The position in minutes, 0-59
hours: u8
The position in hours, 0-23
code_type: TimeCodeType
Implementations
Trait Implementations
sourceimpl From<StandardUserBits> for TimeCode
impl From<StandardUserBits> for TimeCode
sourcefn from(t: StandardUserBits) -> Self
fn from(t: StandardUserBits) -> Self
Converts to this type from the input type.
sourceimpl From<TimeCode> for StandardTimeCode
impl From<TimeCode> for StandardTimeCode
sourceimpl From<TimeCode> for StandardUserBits
impl From<TimeCode> for StandardUserBits
impl Copy for TimeCode
impl Eq for TimeCode
impl StructuralEq for TimeCode
impl StructuralPartialEq for TimeCode
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
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