Struct mpeg2ts_reader::psi::pmt::PmtSection
source · pub struct PmtSection<'buf> { /* private fields */ }Expand description
Sections of the Program Map Table give details of the streams within a particular program
Implementations§
source§impl<'buf> PmtSection<'buf>
impl<'buf> PmtSection<'buf>
sourcepub fn from_bytes(data: &'buf [u8]) -> Result<PmtSection<'buf>, DemuxError>
pub fn from_bytes(data: &'buf [u8]) -> Result<PmtSection<'buf>, DemuxError>
Create a PmtSection, wrapping the given slice, whose methods can parse the section’s
fields
sourcepub fn buffer(&self) -> &[u8] ⓘ
pub fn buffer(&self) -> &[u8] ⓘ
Borrow a reference to the buffer containing the underlying PMT section data
sourcepub fn pcr_pid(&self) -> Pid
pub fn pcr_pid(&self) -> Pid
Returns the Pid of packets that will contain the Program Clock Reference for this program
sourcepub fn descriptors<Desc: Descriptor<'buf> + 'buf>(
&self
) -> impl Iterator<Item = Result<Desc, DescriptorError>> + 'buf
pub fn descriptors<Desc: Descriptor<'buf> + 'buf>( &self ) -> impl Iterator<Item = Result<Desc, DescriptorError>> + 'buf
Returns an iterator over the descriptors attached to this PMT section.
sourcepub fn streams(&self) -> impl Iterator<Item = StreamInfo<'buf>>
pub fn streams(&self) -> impl Iterator<Item = StreamInfo<'buf>>
Returns an iterator over the streams of which this program is composed
Trait Implementations§
Auto Trait Implementations§
impl<'buf> RefUnwindSafe for PmtSection<'buf>
impl<'buf> Send for PmtSection<'buf>
impl<'buf> Sync for PmtSection<'buf>
impl<'buf> Unpin for PmtSection<'buf>
impl<'buf> UnwindSafe for PmtSection<'buf>
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