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
sourceimpl Clone for StandardTimeCode
impl Clone for StandardTimeCode
sourcefn clone(&self) -> StandardTimeCode
fn clone(&self) -> StandardTimeCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StandardTimeCode
impl Debug for StandardTimeCode
sourceimpl Default for StandardTimeCode
impl Default for StandardTimeCode
sourcefn default() -> StandardTimeCode
fn default() -> StandardTimeCode
Returns the “default value” for a type. Read more
sourceimpl From<TimeCode> for StandardTimeCode
impl From<TimeCode> for StandardTimeCode
sourceimpl PartialEq<StandardTimeCode> for StandardTimeCode
impl PartialEq<StandardTimeCode> for StandardTimeCode
sourcefn eq(&self, other: &StandardTimeCode) -> bool
fn eq(&self, other: &StandardTimeCode) -> bool
impl Copy for StandardTimeCode
impl Eq for StandardTimeCode
impl StructuralEq for StandardTimeCode
impl StructuralPartialEq for StandardTimeCode
Auto Trait Implementations
impl RefUnwindSafe for StandardTimeCode
impl Send for StandardTimeCode
impl Sync for StandardTimeCode
impl Unpin for StandardTimeCode
impl UnwindSafe for StandardTimeCode
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