pub struct WeakReceiver<T> { /* private fields */ }
Expand description
A Receiver
that prevents the channel from not being closed.
This is created through the Receiver::downgrade
method. In order to use it, it needs
to be upgraded into a Receiver
through the upgrade
method.
Implementations§
Source§impl<T> WeakReceiver<T>
impl<T> WeakReceiver<T>
Trait Implementations§
Source§impl<T: Clone> Clone for WeakReceiver<T>
impl<T: Clone> Clone for WeakReceiver<T>
Source§fn clone(&self) -> WeakReceiver<T>
fn clone(&self) -> WeakReceiver<T>
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<T> Freeze for WeakReceiver<T>
impl<T> RefUnwindSafe for WeakReceiver<T>
impl<T> Send for WeakReceiver<T>where
T: Send,
impl<T> Sync for WeakReceiver<T>where
T: Send,
impl<T> Unpin for WeakReceiver<T>
impl<T> UnwindSafe for WeakReceiver<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)