[−][src]Module tokio::stream
Stream utilities for Tokio.
A Stream
is an asynchronous sequence of values. It can be thought of as an asynchronous version of the standard library's Iterator
trait.
This module provides helpers to work with them.
Structs
Empty | Stream for the |
Iter | Stream for the |
Once | Stream for the |
Pending | Stream for the |
StreamMap | Combine many streams into one, indexing each source stream with a unique key. |
Traits
FromStream | Convert from a |
Stream | A stream of values produced asynchronously. |
StreamExt | An extension trait for |
Functions
empty | Creates a stream that yields nothing. |
iter | Converts an |
once | Creates a stream that emits an element exactly once. |
pending | Creates a stream that is never ready |