Struct midi_msg::StandardTimeCode
source · pub struct StandardTimeCode {
pub subframes: SubFrames,
pub frames: i8,
pub seconds: u8,
pub minutes: u8,
pub hours: u8,
pub code_type: TimeCodeType,
}
Expand description
Like TimeCode
but uses subframes
to optionally include status flags, and fractional frames.
Also may be negative. Used in MachineControlCommandMsg
.
As defined in MIDI Machine Control 1.0 (MMA0016 / RP013) and MIDI Show Control 1.1.1 (RP002/RP014)
Fields§
§subframes: SubFrames
§frames: i8
The position in frames, where a negative value indicates a negative TimeCode, -29-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 Clone for StandardTimeCode
impl Clone for StandardTimeCode
source§fn clone(&self) -> StandardTimeCode
fn clone(&self) -> StandardTimeCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StandardTimeCode
impl Debug for StandardTimeCode
source§impl Default for StandardTimeCode
impl Default for StandardTimeCode
source§fn default() -> StandardTimeCode
fn default() -> StandardTimeCode
Returns the “default value” for a type. Read more
source§impl From<TimeCode> for StandardTimeCode
impl From<TimeCode> for StandardTimeCode
source§impl PartialEq for StandardTimeCode
impl PartialEq for StandardTimeCode
source§fn eq(&self, other: &StandardTimeCode) -> bool
fn eq(&self, other: &StandardTimeCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StandardTimeCode
impl Eq for StandardTimeCode
impl StructuralPartialEq for StandardTimeCode
Auto Trait Implementations§
impl Freeze for StandardTimeCode
impl RefUnwindSafe for StandardTimeCode
impl Send for StandardTimeCode
impl Sync for StandardTimeCode
impl Unpin for StandardTimeCode
impl UnwindSafe for StandardTimeCode
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