Skip to main content

ByteStream

Type Alias ByteStream 

Source
pub type ByteStream = dyn Stream<Item = Result<Bytes, String>> + Send + Sync;
Expand description

A body byte-stream, as the decoders take and return one.

The client hands its own body streams straight to decode_stream: the shape is the same one its pipeline already carries, so nothing has to depend on the layer above to name it.