Module futures_util::stream [−][src]
Asynchronous streams.
This module contains:
- The
Streamtrait, for objects that can asynchronously produce a sequence of values. - The
StreamExtandTryStreamExttrait, which provides adapters for chaining and composing streams. - Top-level stream constructors like
iterwhich creates a stream from an iterator.
Structs
| AndThen | Stream for the |
| Chain | Stream for the |
| Collect | Future for the |
| Concat | Future for the |
| Cycle | Stream for the |
| Empty | Stream for the |
| Enumerate | Stream for the |
| ErrInto | Stream for the |
| Filter | Stream for the |
| FilterMap | Stream for the |
| FlatMap | Stream for the |
| Flatten | Stream for the |
| Fold | Future for the |
| ForEach | Future for the |
| Fuse | Stream for the |
| Inspect | Stream for the |
| InspectErr | Stream for the |
| InspectOk | Stream for the |
| IntoStream | Stream for the |
| Iter | Stream for the |
| Map | Stream for the |
| MapErr | Stream for the |
| MapOk | Stream for the |
| Next | Future for the |
| NextIf | Future for the |
| NextIfEq | Future for the |
| Once | A stream which emits single element and then EOF. |
| OrElse | Stream for the |
| Peek | Future for the |
| Peekable | A |
| Pending | Stream for the |
| PollFn | Stream for the |
| Repeat | Stream for the |
| RepeatWith | An stream that repeats elements of type |
| Scan | Stream for the |
| Select | Stream for the |
| SelectNextSome | Future for the |
| Skip | Stream for the |
| SkipWhile | Stream for the |
| StreamFuture | Future for the |
| Take | Stream for the |
| TakeUntil | Stream for the |
| TakeWhile | Stream for the |
| Then | Stream for the |
| TryCollect | Future for the |
| TryConcat | Future for the |
| TryFilter | Stream for the |
| TryFilterMap | Stream for the |
| TryFlatten | Stream for the |
| TryFold | Future for the |
| TryForEach | Future for the |
| TryNext | Future for the |
| TrySkipWhile | Stream for the |
| TryTakeWhile | Stream for the |
| TryUnfold | Stream for the |
| Unfold | Stream for the |
| Unzip | Future for the |
| Zip | Stream for the |
Traits
| FusedStream | A stream which tracks whether or not the underlying stream should no longer be polled. |
| Stream | A stream of values produced asynchronously. |
| StreamExt | An extension trait for |
| TryStream | A convenience for streams that return |
| TryStreamExt | Adapters specific to |
Functions
| empty | Creates a stream which contains no elements. |
| iter | Converts an |
| once | Creates a stream of a single element. |
| pending | Creates a stream which never returns any elements. |
| poll_fn | Creates a new stream wrapping a function returning |
| repeat | Create a stream which produces the same item repeatedly. |
| repeat_with | Creates a new stream that repeats elements of type |
| select | 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. |
| try_unfold | Creates a |
| unfold | Creates a |