pub fn encode_session_frame(
frame: &SessionFrame,
seq: u64,
) -> Result<Vec<u8>, FramingError>Expand description
Encode one SessionFrame to complete wire bytes
([1][u32 len][prost Frame]), ready to write to a transport.
§Errors
FramingError::FrameTooLarge when the encoded envelope exceeds the frame
cap — propagated from encode_framed.