Skip to main content

ByteStream

Type Alias ByteStream 

Source
pub type ByteStream<'a> = Pin<Box<dyn Stream<Item = Result<Bytes>> + Send + 'a>>;
Expand description

A boxed byte stream. The box wraps the stream once (not each item), keeping the per-chunk path allocation-free; this matches the house ByteStream alias.

Aliased Typeยง

#[repr(transparent)]
pub struct ByteStream<'a> { /* private fields */ }