Skip to main content

encode_framed

Function encode_framed 

Source
pub fn encode_framed(frame: &Frame) -> Result<Vec<u8>, FramingError>
Expand description

Encode one Frame into complete v1 wire bytes.

ยงErrors

Returns FramingError::FrameTooLarge when the encoded body exceeds the frozen MAX_FRAME_BYTES cap.