Module futures_util::stream

source ·
Expand description

Streams

This module contains a number of functions for working with Streams, including the StreamExt trait which adds methods to Stream types.

Modules§

Structs§

Traits§

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

Functions§

  • Creates a stream which contains no elements.
  • Converts an Iterator into a Stream which is always ready to yield the next value.
  • Creates a stream of single element
  • Creates a new stream wrapping around a function returning Poll.
  • Create a stream which produces the same item repeatedly.
  • 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.
  • Convert a list of streams into a Stream of results from the streams.
  • Creates a Stream from a seed and a closure returning a Future.