[][src]Module tokio::stream

A sequence of asynchronous values.

Traits

Stream

A stream of values produced asynchronously.

StreamExt

An extension trait for Stream that provides a variety of convenient combinator functions.

Functions

empty

Creates a stream which contains no elements.

iter

Converts an Iterator into a Stream which is always ready to yield the next value.

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 Poll<Option<T>>.

repeat

Create a stream which produces the same item repeatedly.

unfold

Creates a Stream from a seed and a closure returning a Future.