pub type Generator<T> = Pin<Box<dyn Stream<Item = T> + Send + 'static>>;
A generator is an internal type that represents a Send [futures_util::Stream] that yields a certain type T whenever it’s polled.
Send
futures_util::Stream
T