pub struct UnboundedReceiver<T> { /* private fields */ }
Expand description
An owning handle for receiving elements through a split unbounded
UnboundedChannel
.
Closes the channel causing all subsequent sends to fail.
Returns the number of queued elements.
Returns true
if the channel is closed.
Returns true
if the channel is empty.
Attempts to receive an element through the channel.
Fails, if the channel is empty or
disconnected.
Polls the channel, resolving if an element was received or the channel
is closed but ignoring whether there are any remaining Sender(s) or
not.
Receives an element through the channel.
Fails, if the channel is empty or
disconnected.
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.