#[non_exhaustive]pub struct TransportMediaInfoBuilder { /* private fields */ }
Expand description
A builder for TransportMediaInfo
.
Implementations§
source§impl TransportMediaInfoBuilder
impl TransportMediaInfoBuilder
sourcepub fn programs(self, input: TransportStreamProgram) -> Self
pub fn programs(self, input: TransportStreamProgram) -> Self
Appends an item to programs
.
To override the contents of this collection use set_programs
.
The list of transport stream programs in the current flow’s source.
sourcepub fn set_programs(self, input: Option<Vec<TransportStreamProgram>>) -> Self
pub fn set_programs(self, input: Option<Vec<TransportStreamProgram>>) -> Self
The list of transport stream programs in the current flow’s source.
sourcepub fn get_programs(&self) -> &Option<Vec<TransportStreamProgram>>
pub fn get_programs(&self) -> &Option<Vec<TransportStreamProgram>>
The list of transport stream programs in the current flow’s source.
sourcepub fn build(self) -> TransportMediaInfo
pub fn build(self) -> TransportMediaInfo
Consumes the builder and constructs a TransportMediaInfo
.
Trait Implementations§
source§impl Clone for TransportMediaInfoBuilder
impl Clone for TransportMediaInfoBuilder
source§fn clone(&self) -> TransportMediaInfoBuilder
fn clone(&self) -> TransportMediaInfoBuilder
Returns a copy 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 moresource§impl Debug for TransportMediaInfoBuilder
impl Debug for TransportMediaInfoBuilder
source§impl Default for TransportMediaInfoBuilder
impl Default for TransportMediaInfoBuilder
source§fn default() -> TransportMediaInfoBuilder
fn default() -> TransportMediaInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TransportMediaInfoBuilder
impl PartialEq for TransportMediaInfoBuilder
source§fn eq(&self, other: &TransportMediaInfoBuilder) -> bool
fn eq(&self, other: &TransportMediaInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransportMediaInfoBuilder
Auto Trait Implementations§
impl Freeze for TransportMediaInfoBuilder
impl RefUnwindSafe for TransportMediaInfoBuilder
impl Send for TransportMediaInfoBuilder
impl Sync for TransportMediaInfoBuilder
impl Unpin for TransportMediaInfoBuilder
impl UnwindSafe for TransportMediaInfoBuilder
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.