Enum mpeg2ts_reader::psi::pat::ProgramDescriptor[][src]

pub enum ProgramDescriptor {
    Network {
        pid: Pid,
    },
    Program {
        program_number: u16,
        pid: Pid,
    },
}

Identifiers related to a specific program within the Transport Stream

Variants

Network

this PAT section entry describes where the Network Information Table will be found

Fields of Network

pid: Pid

The PID of NIT section packets

Program

this PAT section entry gives the PID and Program Number of a program within this Transport Stream

Fields of Program

program_number: u16

The program number might represent the ‘channel’ of the program

pid: Pid

The PID where PMT sections for this program can be found

Implementations

impl ProgramDescriptor[src]

pub fn from_bytes(data: &[u8]) -> ProgramDescriptor[src]

panics if fewer than 4 bytes are provided

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

produces the Pid of either the NIT or PMT, depending on which type of ProgramDescriptor this is

Trait Implementations

impl Clone for ProgramDescriptor[src]

impl Debug for ProgramDescriptor[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.