Module mogwai::stream

source ·
Expand description

Types and extention traits for Streams.

Re-exports some of the futures crate, along with extensions and helper types.

Structs

Traits

Functions

  • Creates an empty stream.
  • Creates a stream from an iterator.
  • Creates a stream that yields a single item.
  • Creates a stream that invokes the given future as its first item, and then produces no more items.
  • Merges two streams, preferring items from stream1 whenever both streams are ready.
  • Creates a stream that is always pending.
  • Creates a stream from a function returning Poll.
  • Creates an infinite stream that yields the same item repeatedly.
  • Creates an infinite stream from a closure that generates items.
  • Creates a stream from a seed value and a fallible async closure operating on it.
  • Creates a stream from a seed value and an async closure operating on it.

Type Aliases