pub struct WeakProducer { /* private fields */ }
Expand description
WeakProducer
doesn’t own producer instance on mediasoup-worker and will not prevent one from
being destroyed once last instance of regular Producer
is dropped.
WeakProducer
vs Producer
is similar to Weak
vs Arc
.
Implementations§
Trait Implementations§
Source§impl Clone for WeakProducer
impl Clone for WeakProducer
Source§fn clone(&self) -> WeakProducer
fn clone(&self) -> WeakProducer
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 WeakProducer
impl !RefUnwindSafe for WeakProducer
impl Send for WeakProducer
impl Sync for WeakProducer
impl Unpin for WeakProducer
impl !UnwindSafe for WeakProducer
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