pub fn write_frame<T: Serialize>( writer: &mut impl Write, value: &T, ) -> Result<()>
Writes one value as one frame and flushes.