Available on crate feature
stream
only.Expand description
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
empty
function. - Iter
- Stream for the
iter
function. - Once
- Stream for the
once
function. - Pending
- Stream for the
pending
function.
Traits§
- From
Stream - Convert from a
Stream
. - Stream
- A stream of values produced asynchronously.
- Stream
Ext - An extension trait for
Stream
s that provides a variety of convenient combinator functions.