#[non_exhaustive]pub struct TransportStreamProgramBuilder { /* private fields */ }
Expand description
A builder for TransportStreamProgram
.
Implementations§
source§impl TransportStreamProgramBuilder
impl TransportStreamProgramBuilder
sourcepub fn pcr_pid(self, input: i32) -> Self
pub fn pcr_pid(self, input: i32) -> Self
The Program Clock Reference (PCR) Packet ID (PID) as it is reported in the Program Association Table. This field is required.
sourcepub fn set_pcr_pid(self, input: Option<i32>) -> Self
pub fn set_pcr_pid(self, input: Option<i32>) -> Self
The Program Clock Reference (PCR) Packet ID (PID) as it is reported in the Program Association Table.
sourcepub fn get_pcr_pid(&self) -> &Option<i32>
pub fn get_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, input: impl Into<String>) -> Self
pub fn program_name(self, input: impl Into<String>) -> Self
The program name as it is reported in the Program Association Table.
sourcepub fn set_program_name(self, input: Option<String>) -> Self
pub fn set_program_name(self, input: Option<String>) -> Self
The program name as it is reported in the Program Association Table.
sourcepub fn get_program_name(&self) -> &Option<String>
pub fn get_program_name(&self) -> &Option<String>
The program name as it is reported in the Program Association Table.
sourcepub fn program_number(self, input: i32) -> Self
pub fn program_number(self, input: i32) -> Self
The program number as it is reported in the Program Association Table. This field is required.
sourcepub fn set_program_number(self, input: Option<i32>) -> Self
pub fn set_program_number(self, input: Option<i32>) -> Self
The program number as it is reported in the Program Association Table.
sourcepub fn get_program_number(&self) -> &Option<i32>
pub fn get_program_number(&self) -> &Option<i32>
The program number as it is reported in the Program Association Table.
sourcepub fn program_pid(self, input: i32) -> Self
pub fn program_pid(self, input: i32) -> Self
The program Packet ID (PID) as it is reported in the Program Association Table. This field is required.
sourcepub fn set_program_pid(self, input: Option<i32>) -> Self
pub fn set_program_pid(self, input: Option<i32>) -> Self
The program Packet ID (PID) as it is reported in the Program Association Table.
sourcepub fn get_program_pid(&self) -> &Option<i32>
pub fn get_program_pid(&self) -> &Option<i32>
The program Packet ID (PID) as it is reported in the Program Association Table.
sourcepub fn streams(self, input: TransportStream) -> Self
pub fn streams(self, input: TransportStream) -> Self
Appends an item to streams
.
To override the contents of this collection use set_streams
.
The list of elementary transport streams in the program. The list includes video, audio, and data streams.
sourcepub fn set_streams(self, input: Option<Vec<TransportStream>>) -> Self
pub fn set_streams(self, input: Option<Vec<TransportStream>>) -> Self
The list of elementary transport streams in the program. The list includes video, audio, and data streams.
sourcepub fn get_streams(&self) -> &Option<Vec<TransportStream>>
pub fn get_streams(&self) -> &Option<Vec<TransportStream>>
The list of elementary transport streams in the program. The list includes video, audio, and data streams.
sourcepub fn build(self) -> TransportStreamProgram
pub fn build(self) -> TransportStreamProgram
Consumes the builder and constructs a TransportStreamProgram
.
Trait Implementations§
source§impl Clone for TransportStreamProgramBuilder
impl Clone for TransportStreamProgramBuilder
source§fn clone(&self) -> TransportStreamProgramBuilder
fn clone(&self) -> TransportStreamProgramBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TransportStreamProgramBuilder
impl Default for TransportStreamProgramBuilder
source§fn default() -> TransportStreamProgramBuilder
fn default() -> TransportStreamProgramBuilder
source§impl PartialEq for TransportStreamProgramBuilder
impl PartialEq for TransportStreamProgramBuilder
source§fn eq(&self, other: &TransportStreamProgramBuilder) -> bool
fn eq(&self, other: &TransportStreamProgramBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransportStreamProgramBuilder
Auto Trait Implementations§
impl Freeze for TransportStreamProgramBuilder
impl RefUnwindSafe for TransportStreamProgramBuilder
impl Send for TransportStreamProgramBuilder
impl Sync for TransportStreamProgramBuilder
impl Unpin for TransportStreamProgramBuilder
impl UnwindSafe for TransportStreamProgramBuilder
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