Module futures_util::stream
source · Expand description
Streams
This module contains a number of functions for working with Stream
s,
including the StreamExt
trait which adds methods to Stream
types.
Modules§
- An unbounded set of futures.
Structs§
- Stream for the
buffer_unordered
method. - Stream for the
buffered
method. - Stream for the
catch_unwind
method. - Stream for the
chain
method. - Stream for the
chunks
method. - Future for the
collect
method. - Future for the
concat
method. - Stream for the
empty
function. - Stream for the
enumerate
method. - Stream for the
filter
method. - Stream for the
filter_map
method. - Stream for the
flatten
method. - Future for the
fold
method. - Future for the
for_each
method. - Future for the
for_each_concurrent
method. - Future for the
forward
method. - Stream for the
fuse
method. - An unbounded queue of futures.
- A set of futures which may complete in any order.
- Stream for the
inspect
method. - Stream for the
iter
function. - Stream for the
map
method. - Future for the
next
method. - A stream which emits single element and then EOF.
- A
Stream
that implements apeek
method. - Stream for the
poll_fn
function. - Stream for the
repeat
function. - Error indicating a
SplitSink<S>
andSplitStream<S>
were not two halves of aStream + Split
, and thus could not bereunite
d. - Stream for the
select()
function. - An unbounded set of streams
- Future for the
select_next_some
method. - Stream for the
skip
method. - Stream for the
skip_while
method. - A
Sink
part of the split pair - A
Stream
part of the split pair - Future for the
into_future
method. - Stream for the
take
method. - Stream for the
take_while
method. - Stream for the
then
method. - Stream for the
unfold
function. - Stream for the
zip
method.
Traits§
- An extension trait for
Stream
s that provides a variety of convenient combinator functions.
Functions§
- Creates a stream which contains no elements.
- Converts an
Iterator
into aStream
which is always ready to yield the next value. - Creates a stream of single element
- Creates a new stream wrapping around a function returning
Poll
. - Create a stream which produces the same item repeatedly.
- This function will attempt to pull items from both streams. Each stream will be polled in a round-robin fashion, and whenever a stream is ready to yield an item that item is yielded.
- Convert a list of streams into a
Stream
of results from the streams. - Creates a
Stream
from a seed and a closure returning aFuture
.