Skip to main content

stream_frame_to_value

Function stream_frame_to_value 

Source
pub fn stream_frame_to_value(
    cx: &mut Cx,
    frame: &ServerFrame,
) -> Result<Option<Value>>
Expand description

Converts a stream frame into the value it carries, if any.

Response and stream-chunk frames yield a value; stream start/end frames yield None; other frame kinds are an error.