Struct relay::Sender
[−]
[src]
pub struct Sender<T> { /* fields omitted */ }
The Sender portion of a channel.
Methods
impl<T> Sender<T>
[src]
pub fn complete(self, val: T)
[src]
Sends the message to the Receiver
.
pub fn is_canceled(&self) -> bool
[src]
Returns true if the Receiver
has been dropped.
pub fn waiting(self) -> Waiting<T>
[src]
Creates a Future
that waits until someone is waiting on the Receiver
.