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