pub struct Channel<T = (), U: ?Sized = ()>(_, _);
Expand description
An MPMC channel with both send and receive capabilities
Enable the futures-core
feature for Channel
to implement
Stream
(generic T
must be Option<Item>
).
Enable the pasts
feature for Channel
to implement
Notifier
.
Create a new channel with associated data.
Send a message on this channel.
Receive a message from this channel.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
The resulting type after dereferencing.
Dereferences the value.
Executes the destructor for this type.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
The type of value produced on completion.
Attempt to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available.
Read more
The event produced by this notify
Get the next event from this notify, registering a wakeup when not
ready.
Read more
Values yielded by the stream.
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted.
Read more
Returns the bounds on the remaining length of the stream.
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 output that the future will produce on completion.
Which kind of future are we turning this into?
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type of successful values yielded by this future
The type of failures yielded by this future
Poll this
TryFuture
as if it were a
Future
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type of successful values yielded by this future
The type of failures yielded by this future
Poll this
TryStream
as if it were a
Stream
.
Read more