#[non_exhaustive]pub struct RtpObserverAddProducerOptions {
pub producer_id: ProducerId,
}
Expand description
Options for adding producer to [RtpObserver
]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.producer_id: ProducerId
The id of the Producer to be added.
Implementations§
Source§impl RtpObserverAddProducerOptions
impl RtpObserverAddProducerOptions
Sourcepub fn new(producer_id: ProducerId) -> Self
pub fn new(producer_id: ProducerId) -> Self
producer_id
- The id of theProducer
to be added.
Trait Implementations§
Source§impl Clone for RtpObserverAddProducerOptions
impl Clone for RtpObserverAddProducerOptions
Source§fn clone(&self) -> RtpObserverAddProducerOptions
fn clone(&self) -> RtpObserverAddProducerOptions
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 moreAuto Trait Implementations§
impl Freeze for RtpObserverAddProducerOptions
impl RefUnwindSafe for RtpObserverAddProducerOptions
impl Send for RtpObserverAddProducerOptions
impl Sync for RtpObserverAddProducerOptions
impl Unpin for RtpObserverAddProducerOptions
impl UnwindSafe for RtpObserverAddProducerOptions
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