#[non_exhaustive]pub struct TransportStreamBuilder { /* private fields */ }
Expand description
A builder for TransportStream
.
Implementations§
source§impl TransportStreamBuilder
impl TransportStreamBuilder
sourcepub fn set_channels(self, input: Option<i32>) -> Self
pub fn set_channels(self, input: Option<i32>) -> Self
The number of channels in the audio stream.
sourcepub fn get_channels(&self) -> &Option<i32>
pub fn get_channels(&self) -> &Option<i32>
The number of channels in the audio stream.
sourcepub fn frame_rate(self, input: impl Into<String>) -> Self
pub fn frame_rate(self, input: impl Into<String>) -> Self
The frame rate used by the video stream.
sourcepub fn set_frame_rate(self, input: Option<String>) -> Self
pub fn set_frame_rate(self, input: Option<String>) -> Self
The frame rate used by the video stream.
sourcepub fn get_frame_rate(&self) -> &Option<String>
pub fn get_frame_rate(&self) -> &Option<String>
The frame rate used by the video stream.
sourcepub fn frame_resolution(self, input: FrameResolution) -> Self
pub fn frame_resolution(self, input: FrameResolution) -> Self
The frame resolution used by the video stream.
sourcepub fn set_frame_resolution(self, input: Option<FrameResolution>) -> Self
pub fn set_frame_resolution(self, input: Option<FrameResolution>) -> Self
The frame resolution used by the video stream.
sourcepub fn get_frame_resolution(&self) -> &Option<FrameResolution>
pub fn get_frame_resolution(&self) -> &Option<FrameResolution>
The frame resolution used by the video stream.
sourcepub fn pid(self, input: i32) -> Self
pub fn pid(self, input: i32) -> Self
The Packet ID (PID) as it is reported in the Program Map Table. This field is required.
sourcepub fn set_pid(self, input: Option<i32>) -> Self
pub fn set_pid(self, input: Option<i32>) -> Self
The Packet ID (PID) as it is reported in the Program Map Table.
sourcepub fn get_pid(&self) -> &Option<i32>
pub fn get_pid(&self) -> &Option<i32>
The Packet ID (PID) as it is reported in the Program Map Table.
sourcepub fn sample_rate(self, input: i32) -> Self
pub fn sample_rate(self, input: i32) -> Self
The sample rate used by the audio stream.
sourcepub fn set_sample_rate(self, input: Option<i32>) -> Self
pub fn set_sample_rate(self, input: Option<i32>) -> Self
The sample rate used by the audio stream.
sourcepub fn get_sample_rate(&self) -> &Option<i32>
pub fn get_sample_rate(&self) -> &Option<i32>
The sample rate used by the audio stream.
sourcepub fn sample_size(self, input: i32) -> Self
pub fn sample_size(self, input: i32) -> Self
The sample bit size used by the audio stream.
sourcepub fn set_sample_size(self, input: Option<i32>) -> Self
pub fn set_sample_size(self, input: Option<i32>) -> Self
The sample bit size used by the audio stream.
sourcepub fn get_sample_size(&self) -> &Option<i32>
pub fn get_sample_size(&self) -> &Option<i32>
The sample bit size used by the audio stream.
sourcepub fn stream_type(self, input: impl Into<String>) -> Self
pub fn stream_type(self, input: impl Into<String>) -> Self
The Stream Type as it is reported in the Program Map Table. This field is required.
sourcepub fn set_stream_type(self, input: Option<String>) -> Self
pub fn set_stream_type(self, input: Option<String>) -> Self
The Stream Type as it is reported in the Program Map Table.
sourcepub fn get_stream_type(&self) -> &Option<String>
pub fn get_stream_type(&self) -> &Option<String>
The Stream Type as it is reported in the Program Map Table.
sourcepub fn build(self) -> TransportStream
pub fn build(self) -> TransportStream
Consumes the builder and constructs a TransportStream
.
Trait Implementations§
source§impl Clone for TransportStreamBuilder
impl Clone for TransportStreamBuilder
source§fn clone(&self) -> TransportStreamBuilder
fn clone(&self) -> TransportStreamBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransportStreamBuilder
impl Debug for TransportStreamBuilder
source§impl Default for TransportStreamBuilder
impl Default for TransportStreamBuilder
source§fn default() -> TransportStreamBuilder
fn default() -> TransportStreamBuilder
source§impl PartialEq for TransportStreamBuilder
impl PartialEq for TransportStreamBuilder
source§fn eq(&self, other: &TransportStreamBuilder) -> bool
fn eq(&self, other: &TransportStreamBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransportStreamBuilder
Auto Trait Implementations§
impl Freeze for TransportStreamBuilder
impl RefUnwindSafe for TransportStreamBuilder
impl Send for TransportStreamBuilder
impl Sync for TransportStreamBuilder
impl Unpin for TransportStreamBuilder
impl UnwindSafe for TransportStreamBuilder
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