pub enum ProgramDescriptor {
Network {
pid: Pid,
},
Program {
program_number: u16,
pid: Pid,
},
}Expand description
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
Program
this PAT section entry gives the PID and Program Number of a program within this Transport Stream
Implementations§
Source§impl ProgramDescriptor
impl ProgramDescriptor
Sourcepub fn from_bytes(data: &[u8]) -> ProgramDescriptor
pub fn from_bytes(data: &[u8]) -> ProgramDescriptor
panics if fewer than 4 bytes are provided
Trait Implementations§
Source§impl Clone for ProgramDescriptor
impl Clone for ProgramDescriptor
Source§fn clone(&self) -> ProgramDescriptor
fn clone(&self) -> ProgramDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProgramDescriptor
impl RefUnwindSafe for ProgramDescriptor
impl Send for ProgramDescriptor
impl Sync for ProgramDescriptor
impl Unpin for ProgramDescriptor
impl UnwindSafe for ProgramDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more