Skip to main content

stream_frames_to_stream

Function stream_frames_to_stream 

Source
pub fn stream_frames_to_stream(
    cx: &mut Cx,
    frames: &[ServerFrame],
) -> Result<StreamValue>
Expand description

Decodes a buffer of server frames back into a lazy StreamValue.

Reconstructs metadata from the StreamStart frame, turns the remaining frames into events, and folds them into a pull-based stream.