Struct tchannel::oneshot::Receiver
[−]
[src]
pub struct Receiver<T> { /* fields omitted */ }
The receiving side of the channel. See channel
to create a channel.
This Receiver
may be turned into a Future
using the IntoFuture
trait (requires the with-futures
feature).
Methods
impl<T> Receiver<T>
[src]
fn try_receive(self) -> Result<T, ReceiveError<T>>
[src]
Try to receive a single value, none blocking. If the channel is empty or if the sender side is disconnected this will return an error.