pub fn write_frame<W: Write, T: Serialize>( writer: &mut W, value: &T, ) -> Result<(), FrameError>
Write value as one JSON frame.
value
Fails if the value cannot be serialized or the stream cannot take it.