pub async fn write_line<W: AsyncWrite + Unpin, T: Serialize>( writer: &mut W, value: &T, ) -> Result<()>
Writes value as one line to writer.
value
writer
The stream failed.