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

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

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

Implementations

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> 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

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.