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