#[non_exhaustive]pub struct MediaStreamAttributesBuilder { /* private fields */ }Expand description
A builder for MediaStreamAttributes.
Implementations§
source§impl MediaStreamAttributesBuilder
impl MediaStreamAttributesBuilder
sourcepub fn fmtp(self, input: Fmtp) -> Self
pub fn fmtp(self, input: Fmtp) -> Self
A set of parameters that define the media stream. This field is required.
sourcepub fn set_fmtp(self, input: Option<Fmtp>) -> Self
pub fn set_fmtp(self, input: Option<Fmtp>) -> Self
A set of parameters that define the media stream.
sourcepub fn lang(self, input: impl Into<String>) -> Self
pub fn lang(self, input: impl Into<String>) -> Self
The audio language, in a format that is recognized by the receiver.
sourcepub fn set_lang(self, input: Option<String>) -> Self
pub fn set_lang(self, input: Option<String>) -> Self
The audio language, in a format that is recognized by the receiver.
sourcepub fn get_lang(&self) -> &Option<String>
pub fn get_lang(&self) -> &Option<String>
The audio language, in a format that is recognized by the receiver.
sourcepub fn build(self) -> MediaStreamAttributes
pub fn build(self) -> MediaStreamAttributes
Consumes the builder and constructs a MediaStreamAttributes.
Trait Implementations§
source§impl Clone for MediaStreamAttributesBuilder
impl Clone for MediaStreamAttributesBuilder
source§fn clone(&self) -> MediaStreamAttributesBuilder
fn clone(&self) -> MediaStreamAttributesBuilder
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 MediaStreamAttributesBuilder
impl Debug for MediaStreamAttributesBuilder
source§impl Default for MediaStreamAttributesBuilder
impl Default for MediaStreamAttributesBuilder
source§fn default() -> MediaStreamAttributesBuilder
fn default() -> MediaStreamAttributesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MediaStreamAttributesBuilder
impl PartialEq for MediaStreamAttributesBuilder
source§fn eq(&self, other: &MediaStreamAttributesBuilder) -> bool
fn eq(&self, other: &MediaStreamAttributesBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MediaStreamAttributesBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MediaStreamAttributesBuilder
impl Send for MediaStreamAttributesBuilder
impl Sync for MediaStreamAttributesBuilder
impl Unpin for MediaStreamAttributesBuilder
impl UnwindSafe for MediaStreamAttributesBuilder
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>
Creates a shared type from an unshared type.