[][src]Module tokio::stream

This is supported on feature="stream" only.

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

Emptyfeature="stream"

Stream for the empty function.

Iterfeature="stream"

Stream for the iter function.

Oncefeature="stream"

Stream for the once function.

Pendingfeature="stream"

Stream for the pending function.

StreamMapfeature="stream"

Combine many streams into one, indexing each source stream with a unique key.

Traits

FromStreamfeature="stream"

Convert from a Stream.

Streamfeature="stream"

A stream of values produced asynchronously.

StreamExtfeature="stream"

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

Functions

emptyfeature="stream"

Creates a stream that yields nothing.

iterfeature="stream"

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

oncefeature="stream"

Creates a stream that emits an element exactly once.

pendingfeature="stream"

Creates a stream that is never ready