pub struct WeakSender<T> { /* private fields */ }Expand description
A sender that does not prevent the channel from being closed.
Weak senders do not count towards the number of active senders on the channel. As soon as
all normal Senders are dropped, the channel is closed, even if there is still a
WeakSender.
To send messages, a WeakSender must first be upgraded to a Sender using the [upgrade]
method.
Implementations§
Trait Implementations§
Source§impl<T> Clone for WeakSender<T>
impl<T> Clone for WeakSender<T>
Source§fn clone(&self) -> Self
fn clone(&self) -> Self
Clones this WeakSender.
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 WeakSender<T>
impl<T> RefUnwindSafe for WeakSender<T>
impl<T> Send for WeakSender<T>where
T: Send,
impl<T> Sync for WeakSender<T>where
T: Send,
impl<T> Unpin for WeakSender<T>
impl<T> UnwindSafe for WeakSender<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