pub fn encode_frame(frame: &Frame) -> Result<Vec<u8>, CodecError>Expand description
Encode one frame as a complete length-prefixed wire buffer, using
DEFAULT_MAX_FRAME_BYTES as the encode-side size guard.
Use encode_frame_with_max to encode against a different bound; a
FrameCodec always encodes against its own configured maximum so that
both directions of one codec share a single bound.