pub struct Cea608State { /* private fields */ }Expand description
Helper struct that has two purposes:
- Tracks the previous data for control code de-duplication
- Adds the last received channel to non control codes.
This object only keeps data for a single Field
Implementations§
Source§impl Cea608State
impl Cea608State
Sourcepub fn decode(&mut self, data: [u8; 2]) -> Result<Option<Cea608>, ParserError>
pub fn decode(&mut self, data: [u8; 2]) -> Result<Option<Cea608>, ParserError>
Decode the provided bytes into an optional parsed Cea608 command.
Sourcepub fn last_received_field(&self) -> Option<Field>
pub fn last_received_field(&self) -> Option<Field>
The Field that some specific tables::Control codes referenced. Can be used to detect field
reversal of the incoming data.
Trait Implementations§
Source§impl Debug for Cea608State
impl Debug for Cea608State
Source§impl Default for Cea608State
impl Default for Cea608State
Source§fn default() -> Cea608State
fn default() -> Cea608State
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Cea608State
impl RefUnwindSafe for Cea608State
impl Send for Cea608State
impl Sync for Cea608State
impl Unpin for Cea608State
impl UnwindSafe for Cea608State
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