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§
source§impl From<StandardUserBits> for TimeCode
impl From<StandardUserBits> for TimeCode
source§fn from(t: StandardUserBits) -> Self
fn from(t: StandardUserBits) -> Self
Converts to this type from the input type.
source§impl From<TimeCode> for StandardTimeCode
impl From<TimeCode> for StandardTimeCode
source§impl From<TimeCode> for StandardUserBits
impl From<TimeCode> for StandardUserBits
source§impl PartialEq for TimeCode
impl PartialEq for TimeCode
impl Copy for TimeCode
impl Eq for TimeCode
impl StructuralPartialEq for TimeCode
Auto Trait Implementations§
impl Freeze for TimeCode
impl RefUnwindSafe for TimeCode
impl Send for TimeCode
impl Sync for TimeCode
impl Unpin for TimeCode
impl UnwindSafe for TimeCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more