pub struct CcData {
pub process_cc_data_flag: bool,
pub reserved_byte1: u8,
pub triplets: Vec<CcTriplet>,
}Expand description
cc_data() — the DVB closed-caption carriage structure (Table B.9).
Fields§
§process_cc_data_flag: boolprocess_cc_data_flag — when true, the cc_data is to be processed.
reserved_byte1: u8The byte after cc_count, Table B.9’s reserved (set to "1111 1111").
Real streams (this byte is em_data in the ATSC A/53 lineage this
syntax is shared with) don’t always hold 0xFF here, so it is
preserved verbatim rather than assumed, to keep the round-trip
byte-exact. Construct with 0xFF to match Table B.9’s own default.
triplets: Vec<CcTriplet>The caption constructs (cc_count is triplets.len()).
Implementations§
Trait Implementations§
impl Eq for CcData
Source§impl Serialize for CcData
impl Serialize for CcData
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Write the serialised form into
buf. Returns the number of bytes
written (always equal to serialized_len()).impl StructuralPartialEq for CcData
Auto Trait Implementations§
impl Freeze for CcData
impl RefUnwindSafe for CcData
impl Send for CcData
impl Sync for CcData
impl Unpin for CcData
impl UnsafeUnpin for CcData
impl UnwindSafe for CcData
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