Struct want::Taker
[−]
[src]
pub struct Taker { /* fields omitted */ }
An entity that wants a value.
Methods
impl Taker
[src]
impl Taker
pub fn cancel(&mut self)
[src]
pub fn cancel(&mut self)
Signal to the Giver
that the want is canceled.
This is useful to tell that the channel is closed if you cannot drop the value yet.
pub fn want(&mut self)
[src]
pub fn want(&mut self)
Signal to the Giver
that a value is wanted.