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]
&self
) -> impl Iterator<Item = Result<Desc, DescriptorError>> + 'buf
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,