pub struct ProgramMapTable {
pub program_number: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub pcr_pid: u16,
pub program_info: Vec<u8>,
pub streams: Vec<PmtStream>,
}Expand description
Parsed Program Map Table for one program.
Fields§
§program_number: u16Program number this PMT serves (from table_id_extension).
version_number: u85-bit version_number.
current_next_indicator: boolcurrent_next_indicator.
pcr_pid: u16PID carrying the program’s PCR (13 bits).
program_info: Vec<u8>Raw program_info descriptor bytes (length given by
program_info_length).
streams: Vec<PmtStream>Per-stream descriptors keyed by elementary_pid.
Implementations§
Source§impl ProgramMapTable
impl ProgramMapTable
Sourcepub fn iter_program_descriptors(&self) -> DescriptorIter<'_> ⓘ
pub fn iter_program_descriptors(&self) -> DescriptorIter<'_> ⓘ
Iterate the program-wide descriptors carried in program_info
as typed TLV records. See
crate::descriptor::iter_descriptors.
Trait Implementations§
Source§impl Clone for ProgramMapTable
impl Clone for ProgramMapTable
Source§fn clone(&self) -> ProgramMapTable
fn clone(&self) -> ProgramMapTable
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 ProgramMapTable
impl Debug for ProgramMapTable
Source§impl Default for ProgramMapTable
impl Default for ProgramMapTable
Source§fn default() -> ProgramMapTable
fn default() -> ProgramMapTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgramMapTable
impl RefUnwindSafe for ProgramMapTable
impl Send for ProgramMapTable
impl Sync for ProgramMapTable
impl Unpin for ProgramMapTable
impl UnsafeUnpin for ProgramMapTable
impl UnwindSafe for ProgramMapTable
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