Struct futures_channel::mpsc::UnboundedReceiver [−][src]
pub struct UnboundedReceiver<T> { /* fields omitted */ }
Expand description
The receiving end of an unbounded mpsc channel.
This value is created by the unbounded
function.
Implementations
Closes the receiving half of a channel, without dropping it.
This prevents any further messages from being sent on the channel while still enabling the receiver to drain messages that are buffered.
Tries to receive the next message without notifying a context if empty.
It is not recommended to call this function from inside of a future, only when you’ve otherwise arranged to be notified when the channel is no longer empty.
This function returns:
Ok(Some(t))
when message is fetchedOk(None)
when channel is closed and no messages left in the queueErr(e)
when there are no messages available, but channel is not yet closed
Trait Implementations
Returns true
if the stream should no longer be polled.