Skip to main content

BoxStream

Type Alias BoxStream 

Source
pub type BoxStream<T> = Pin<Box<dyn Stream<Item = Result<T, Error>> + Send>>;
Expand description

Type alias for a boxed async stream of results.

All streaming methods return this type. Consume it with futures::StreamExt::next().

Aliased Typeยง

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