pub fn encode_framed(frame: &Frame) -> Result<Vec<u8>, FramingError>Expand description
Encode one Frame into complete wire bytes:
[u8 framing_version=1][u32 LE body_len][prost Frame].
ยงErrors
FramingError::FrameTooLarge when the encoded body exceeds
MAX_FRAME_BYTES.