pub struct WeakSender<T> { /* private fields */ }
Expand description
A Sender
that prevents the channel from not being closed.
This is created through the Sender::downgrade
method. In order to use it, it needs
to be upgraded into a Sender
through the upgrade
method.
Implementations§
Source§impl<T> WeakSender<T>
impl<T> WeakSender<T>
Trait Implementations§
Source§impl<T> Clone for WeakSender<T>
impl<T> Clone for WeakSender<T>
Auto 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
)