[−][src]Struct ltc::LTCFrame
Represents a single LTC frame obtained from an LTCDecoder.
This struct represents the encoded data almost 1:1, that is, no extra processing is done. The one exception is that the hour, minute, second and frame are all decode for ease of use.
Examples
let frame: LTCFrame = ...; println!("Frame time: {}", frame.format_time());
Fields
frame: u8second: u8minute: u8hour: u8user1: u8user2: u8user3: u8user4: u8user5: u8user6: u8user7: u8user8: u8drop_frame: boolcolor_frame: boolflag27: boolflag43: boolflag59: boolsynchronised_externally: boolMethods
impl LTCFrame[src]
pub fn format_time(&self) -> String[src]
Trait Implementations
impl Debug for LTCFrame[src]
impl Eq for LTCFrame[src]
impl PartialEq<LTCFrame> for LTCFrame[src]
impl StructuralEq for LTCFrame[src]
impl StructuralPartialEq for LTCFrame[src]
Auto Trait Implementations
impl RefUnwindSafe for LTCFrame
impl Send for LTCFrame
impl Sync for LTCFrame
impl Unpin for LTCFrame
impl UnwindSafe for LTCFrame
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,
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, 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.
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>,