pub struct PatSection {
pub transport_stream_id: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub entries: Vec<PatEntry>,
}Expand description
Program Association Table.
Fields§
§transport_stream_id: u16transport_stream_id from the section header.
version_number: u85-bit version_number from the section header.
current_next_indicator: boolcurrent_next_indicator bit.
section_number: u8section_number in the sub-table sequence.
last_section_number: u8last_section_number in the sub-table sequence.
entries: Vec<PatEntry>Program entries in wire order.
Implementations§
Trait Implementations§
Source§impl Clone for PatSection
impl Clone for PatSection
Source§fn clone(&self) -> PatSection
fn clone(&self) -> PatSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatSection
impl Debug for PatSection
Source§impl Default for PatSection
impl Default for PatSection
Source§fn default() -> PatSection
fn default() -> PatSection
Returns the “default value” for a type. Read more
impl Eq for PatSection
Source§impl<'a> From<PatSection> for AnyTableSection<'a>
impl<'a> From<PatSection> for AnyTableSection<'a>
Source§fn from(t: PatSection) -> Self
fn from(t: PatSection) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for PatSection
impl<'a> Parse<'a> for PatSection
Source§impl PartialEq for PatSection
impl PartialEq for PatSection
Source§fn eq(&self, other: &PatSection) -> bool
fn eq(&self, other: &PatSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatSection
impl Serialize for PatSection
Source§impl Serialize for PatSection
impl Serialize for PatSection
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.impl StructuralPartialEq for PatSection
Source§impl<'a> TableDef<'a> for PatSection
impl<'a> TableDef<'a> for PatSection
Auto Trait Implementations§
impl Freeze for PatSection
impl RefUnwindSafe for PatSection
impl Send for PatSection
impl Sync for PatSection
impl Unpin for PatSection
impl UnsafeUnpin for PatSection
impl UnwindSafe for PatSection
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