#[non_exhaustive]pub struct TransportStreamProgram {
pub pcr_pid: Option<i32>,
pub program_name: Option<String>,
pub program_number: Option<i32>,
pub program_pid: Option<i32>,
pub streams: Option<Vec<TransportStream>>,
}
Expand description
The metadata of a single transport stream program.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.pcr_pid: Option<i32>
The Program Clock Reference (PCR) Packet ID (PID) as it is reported in the Program Association Table.
program_name: Option<String>
The program name as it is reported in the Program Association Table.
program_number: Option<i32>
The program number as it is reported in the Program Association Table.
program_pid: Option<i32>
The program Packet ID (PID) as it is reported in the Program Association Table.
streams: Option<Vec<TransportStream>>
The list of elementary transport streams in the program. The list includes video, audio, and data streams.
Implementations§
source§impl TransportStreamProgram
impl TransportStreamProgram
sourcepub fn pcr_pid(&self) -> Option<i32>
pub fn pcr_pid(&self) -> Option<i32>
The Program Clock Reference (PCR) Packet ID (PID) as it is reported in the Program Association Table.
sourcepub fn program_name(&self) -> Option<&str>
pub fn program_name(&self) -> Option<&str>
The program name as it is reported in the Program Association Table.
sourcepub fn program_number(&self) -> Option<i32>
pub fn program_number(&self) -> Option<i32>
The program number as it is reported in the Program Association Table.
sourcepub fn program_pid(&self) -> Option<i32>
pub fn program_pid(&self) -> Option<i32>
The program Packet ID (PID) as it is reported in the Program Association Table.
sourcepub fn streams(&self) -> &[TransportStream]
pub fn streams(&self) -> &[TransportStream]
The list of elementary transport streams in the program. The list includes video, audio, and data streams.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .streams.is_none()
.
source§impl TransportStreamProgram
impl TransportStreamProgram
sourcepub fn builder() -> TransportStreamProgramBuilder
pub fn builder() -> TransportStreamProgramBuilder
Creates a new builder-style object to manufacture TransportStreamProgram
.
Trait Implementations§
source§impl Clone for TransportStreamProgram
impl Clone for TransportStreamProgram
source§fn clone(&self) -> TransportStreamProgram
fn clone(&self) -> TransportStreamProgram
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransportStreamProgram
impl Debug for TransportStreamProgram
source§impl PartialEq for TransportStreamProgram
impl PartialEq for TransportStreamProgram
source§fn eq(&self, other: &TransportStreamProgram) -> bool
fn eq(&self, other: &TransportStreamProgram) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransportStreamProgram
Auto Trait Implementations§
impl Freeze for TransportStreamProgram
impl RefUnwindSafe for TransportStreamProgram
impl Send for TransportStreamProgram
impl Sync for TransportStreamProgram
impl Unpin for TransportStreamProgram
impl UnwindSafe for TransportStreamProgram
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more