decode_stream_frame

Function decode_stream_frame 

Source
pub fn decode_stream_frame<T, E>(frame: Bytes) -> Option<T>
Expand description

Decode a websocket-framed streaming payload produced by encode_stream_frame.

This function returns None if the frame is invalid or cannot be decoded.

It cannot handle masked frames, as those are not produced by our encoding function.