Struct bonsaidb::core::circulate::flume::WeakSender
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§
Auto Trait Implementations§
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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