Skip to main content

stream_frame_to_expr

Function stream_frame_to_expr 

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

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

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