Skip to main content

BoxStream

Type Alias BoxStream 

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

A boxed stream type for HTTP response bodies.

This type alias simplifies the complex stream type used throughout the crate. The stream yields Result<Bytes, E> where E is the error type from the HTTP client.

Aliased Typeยง

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