pub struct CCDataWriter { /* private fields */ }
Expand description
A struct for writing cc_data packets
Implementations§
Source§impl CCDataWriter
impl CCDataWriter
Sourcepub fn set_output_cea608_padding(&mut self, output_cea608_padding: bool)
pub fn set_output_cea608_padding(&mut self, output_cea608_padding: bool)
Whether to output padding CEA-608 bytes when not enough enough data has been provided
Sourcepub fn output_cea608_padding(&self) -> bool
pub fn output_cea608_padding(&self) -> bool
Whether padding CEA-608 bytes will be used
Sourcepub fn set_output_padding(&mut self, output_padding: bool)
pub fn set_output_padding(&mut self, output_padding: bool)
Whether to output padding data in the CCP bitstream when not enough data has been provided
Sourcepub fn output_padding(&self) -> bool
pub fn output_padding(&self) -> bool
Whether padding data will be produced in the CCP
Sourcepub fn push_packet(&mut self, packet: DTVCCPacket)
pub fn push_packet(&mut self, packet: DTVCCPacket)
Push a DTVCCPacket
for writing
Sourcepub fn push_cea608(&mut self, cea608: Cea608)
pub fn push_cea608(&mut self, cea608: Cea608)
Push a Cea608
byte pair for writing
Sourcepub fn buffered_cea608_field1_duration(&self) -> Duration
pub fn buffered_cea608_field1_duration(&self) -> Duration
The amount of time that is currently stored for CEA-608 field 1 data
Sourcepub fn buffered_cea608_field2_duration(&self) -> Duration
pub fn buffered_cea608_field2_duration(&self) -> Duration
The amount of time that is currently stored for CEA-608 field 2 data
Sourcepub fn buffered_packet_duration(&self) -> Duration
pub fn buffered_packet_duration(&self) -> Duration
The amount of time that is currently stored for CCP data
Trait Implementations§
Source§impl Debug for CCDataWriter
impl Debug for CCDataWriter
Source§impl Default for CCDataWriter
impl Default for CCDataWriter
Source§fn default() -> CCDataWriter
fn default() -> CCDataWriter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CCDataWriter
impl RefUnwindSafe for CCDataWriter
impl Send for CCDataWriter
impl Sync for CCDataWriter
impl Unpin for CCDataWriter
impl UnwindSafe for CCDataWriter
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