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