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

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

Methods

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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ProgramDescriptor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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.