pub fn read(
input: &mut impl BufRead,
framing: Framing,
) -> Result<Option<String>>Expand description
Read one message, or None at end of input.
ยงErrors
Returns an error only for an I/O failure. A malformed message is not an error here: the caller answers it with a parse error and reads the next one, because a client that sends one bad frame has not necessarily stopped being a client.