Generator

Type Alias Generator 

Source
pub type Generator<T> = Pin<Box<dyn Stream<Item = T> + Send + 'static>>;
Expand description

A generator is an internal type that represents a Send futures_util::Stream that yields a certain type T whenever it’s polled.

Aliased Type§

pub struct Generator<T> { /* private fields */ }