Skip to main content

ByteStream

Type Alias ByteStream 

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

Raw HTTP body chunks. A transport chunk need not align with a JSON value, UTF-8 character, SSE event, or multipart boundary.

Aliased Typeยง

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