pub fn encode_line<T: Serialize>(value: &T) -> Result<String>
Encode a message as a single JSON line (with trailing \n).
\n