[][src]Struct mpeg2ts_reader::psi::pmt::PmtSection

pub struct PmtSection<'buf> { /* fields omitted */ }

Sections of the Program Map Table give details of the streams within a particular program

Methods

impl<'buf> PmtSection<'buf>[src]

pub fn from_bytes(data: &'buf [u8]) -> Result<PmtSection<'buf>, DemuxError>[src]

Create a PmtSection, wrapping the given slice, whose methods can parse the section's fields

pub fn buffer(&self) -> &[u8][src]

Borrow a reference to the buffer containing the underlying PMT section data

pub fn pcr_pid(&self) -> Pid[src]

Returns the Pid of packets that will contain the Program Clock Reference for this program

pub fn descriptors<Desc: Descriptor<'buf> + 'buf>(
    &self
) -> impl Iterator<Item = Result<Desc, DescriptorError>> + 'buf
[src]

Returns an iterator over the descriptors attached to this PMT section.

pub fn streams(
    &self
) -> impl Iterator<Item = StreamInfo<'buf>>
[src]

Returns an iterator over the streams of which this program is composed

Trait Implementations

impl<'buf> Debug for PmtSection<'buf>[src]

Auto Trait Implementations

impl<'buf> Send for PmtSection<'buf>

impl<'buf> Sync for PmtSection<'buf>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.