#[non_exhaustive]pub struct PmtSection<'a> {
pub program_number: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub pcr_pid: u16,
pub program_info: DescriptorLoop<'a>,
pub streams: Vec<PmtStream<'a>>,
}Expand description
Program Map Table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.program_number: u16Programme number from the table_id_extension field.
version_number: u85-bit version_number.
current_next_indicator: boolcurrent_next_indicator bit.
section_number: u8section_number in the sub-table sequence (ISO/IEC 13818-1 §2.4.4.8; shall be 0x00 for conformant PMTs but preserved for round-trip fidelity).
last_section_number: u8last_section_number in the sub-table sequence (ISO/IEC 13818-1 §2.4.4.8; shall be 0x00 for conformant PMTs but preserved for round-trip fidelity).
pcr_pid: u1613-bit PCR PID.
program_info: DescriptorLoop<'a>Raw program_info descriptor bytes.
Program-info descriptor loop. Serializes as the typed descriptor
sequence; .raw() yields the wire bytes.
streams: Vec<PmtStream<'a>>Elementary streams in wire order.
Implementations§
Source§impl<'a> PmtSection<'a>
impl<'a> PmtSection<'a>
Sourcepub fn new(
program_number: u16,
version_number: u8,
current_next_indicator: bool,
section_number: u8,
last_section_number: u8,
pcr_pid: u16,
program_info: DescriptorLoop<'a>,
streams: Vec<PmtStream<'a>>,
) -> Self
pub fn new( program_number: u16, version_number: u8, current_next_indicator: bool, section_number: u8, last_section_number: u8, pcr_pid: u16, program_info: DescriptorLoop<'a>, streams: Vec<PmtStream<'a>>, ) -> Self
Construct a PmtSection from its fields.
This is the canonical constructor for external code. PmtSection is
#[non_exhaustive] so struct literal syntax is not available outside
the crate; use this function instead.
Trait Implementations§
Source§impl<'a> Clone for PmtSection<'a>
impl<'a> Clone for PmtSection<'a>
Source§fn clone(&self) -> PmtSection<'a>
fn clone(&self) -> PmtSection<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for PmtSection<'a>
impl<'a> Debug for PmtSection<'a>
impl<'a> Eq for PmtSection<'a>
Source§impl<'a> From<PmtSection<'a>> for AnyTableSection<'a>
impl<'a> From<PmtSection<'a>> for AnyTableSection<'a>
Source§fn from(t: PmtSection<'a>) -> Self
fn from(t: PmtSection<'a>) -> Self
Source§impl<'a> Parse<'a> for PmtSection<'a>
impl<'a> Parse<'a> for PmtSection<'a>
Source§impl<'a> PartialEq for PmtSection<'a>
impl<'a> PartialEq for PmtSection<'a>
Source§fn eq(&self, other: &PmtSection<'a>) -> bool
fn eq(&self, other: &PmtSection<'a>) -> bool
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for PmtSection<'a>
impl<'a> Serialize for PmtSection<'a>
Source§impl Serialize for PmtSection<'_>
impl Serialize for PmtSection<'_>
Source§type Error = Error
type Error = Error
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
serialize_into will write.impl<'a> StructuralPartialEq for PmtSection<'a>
Source§impl<'a> TableDef<'a> for PmtSection<'a>
impl<'a> TableDef<'a> for PmtSection<'a>
Source§impl<'a> Yokeable<'a> for PmtSection<'static>
impl<'a> Yokeable<'a> for PmtSection<'static>
Source§type Output = PmtSection<'a>
type Output = PmtSection<'a>
Self with the 'static replaced with 'a, i.e. Self<'a>