Skip to main content

Module stream

Module stream 

Source

Functions§

iter
Converts an Iterator into a Stream which is always ready to yield the next value.
once
Creates a stream that invokes the given future as its first item, and then produces no more items.
unfold
Creates a stream from a seed value and an async closure operating on it.

Type Aliases§

Boxed
Type alias for Pin<Box<dyn Stream<Item = T> + Send + 'static>>.