pub fn write_frame<W, M>(w: &mut W, msg: &M) -> Result<(), FrameError>Expand description
Writes a single framed protobuf message to w. The encoded length
is prepended as a little-endian u32; if it exceeds
MAX_FRAME_BYTES the call returns FrameError::LengthTooLarge
without writing anything.