stream_from_iter

Function stream_from_iter 

Source
pub fn stream_from_iter<I, E>(
    chunks: I,
) -> StreamBody<Iter<IntoIter<Result<Bytes, E>>>>
where I: IntoIterator<Item = Result<Bytes, E>>,
Expand description

Helper function to create a streaming body from an iterator of byte chunks

This is useful for simple cases where you have a fixed set of chunks.