pub fn write_frame<T: Serialize>(
writer: &mut impl Write,
body: &T,
bound: usize,
) -> Result<()>Expand description
Write one independently versioned frame with a hard serialization bound.
ยงErrors
Returns encoding, bound or output errors before any partial JSON is accepted.