Skip to main content

split_frame

Function split_frame 

Source
pub fn split_frame(buf: &[u8]) -> Result<Option<Frame<'_>>, FrameTooLarge>
Expand description

Split the first frame off the front of buf, with the protocol’s MAX_FRAME_SIZE as the payload limit.

See split_frame_limited.