Struct async_channel::WeakReceiver
source · 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 more