#[non_exhaustive]pub struct MediaStreamSourceConfigurationBuilder { /* private fields */ }
Expand description
A builder for MediaStreamSourceConfiguration
.
Implementations§
source§impl MediaStreamSourceConfigurationBuilder
impl MediaStreamSourceConfigurationBuilder
sourcepub fn encoding_name(self, input: EncodingName) -> Self
pub fn encoding_name(self, input: EncodingName) -> Self
The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv. This field is required.
sourcepub fn set_encoding_name(self, input: Option<EncodingName>) -> Self
pub fn set_encoding_name(self, input: Option<EncodingName>) -> Self
The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv.
sourcepub fn get_encoding_name(&self) -> &Option<EncodingName>
pub fn get_encoding_name(&self) -> &Option<EncodingName>
The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv.
sourcepub fn input_configurations(self, input: InputConfiguration) -> Self
pub fn input_configurations(self, input: InputConfiguration) -> Self
Appends an item to input_configurations
.
To override the contents of this collection use set_input_configurations
.
The transport parameters that are associated with an incoming media stream.
sourcepub fn set_input_configurations(
self,
input: Option<Vec<InputConfiguration>>,
) -> Self
pub fn set_input_configurations( self, input: Option<Vec<InputConfiguration>>, ) -> Self
The transport parameters that are associated with an incoming media stream.
sourcepub fn get_input_configurations(&self) -> &Option<Vec<InputConfiguration>>
pub fn get_input_configurations(&self) -> &Option<Vec<InputConfiguration>>
The transport parameters that are associated with an incoming media stream.
sourcepub fn media_stream_name(self, input: impl Into<String>) -> Self
pub fn media_stream_name(self, input: impl Into<String>) -> Self
The name of the media stream. This field is required.
sourcepub fn set_media_stream_name(self, input: Option<String>) -> Self
pub fn set_media_stream_name(self, input: Option<String>) -> Self
The name of the media stream.
sourcepub fn get_media_stream_name(&self) -> &Option<String>
pub fn get_media_stream_name(&self) -> &Option<String>
The name of the media stream.
sourcepub fn build(self) -> MediaStreamSourceConfiguration
pub fn build(self) -> MediaStreamSourceConfiguration
Consumes the builder and constructs a MediaStreamSourceConfiguration
.
Trait Implementations§
source§impl Clone for MediaStreamSourceConfigurationBuilder
impl Clone for MediaStreamSourceConfigurationBuilder
source§fn clone(&self) -> MediaStreamSourceConfigurationBuilder
fn clone(&self) -> MediaStreamSourceConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for MediaStreamSourceConfigurationBuilder
impl Default for MediaStreamSourceConfigurationBuilder
source§fn default() -> MediaStreamSourceConfigurationBuilder
fn default() -> MediaStreamSourceConfigurationBuilder
source§impl PartialEq for MediaStreamSourceConfigurationBuilder
impl PartialEq for MediaStreamSourceConfigurationBuilder
source§fn eq(&self, other: &MediaStreamSourceConfigurationBuilder) -> bool
fn eq(&self, other: &MediaStreamSourceConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MediaStreamSourceConfigurationBuilder
Auto Trait Implementations§
impl Freeze for MediaStreamSourceConfigurationBuilder
impl RefUnwindSafe for MediaStreamSourceConfigurationBuilder
impl Send for MediaStreamSourceConfigurationBuilder
impl Sync for MediaStreamSourceConfigurationBuilder
impl Unpin for MediaStreamSourceConfigurationBuilder
impl UnwindSafe for MediaStreamSourceConfigurationBuilder
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