Skip to main content

encode_line

Function encode_line 

Source
pub fn encode_line<T: Serialize>(value: &T) -> Result<String, TransportError>
Expand description

Serialize a value as one JSON line (no trailing newline — the transports add the \n framing themselves).