Struct flume::WeakSender
source · 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 Sender
s 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
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
)