pub fn parse_message(line: &str) -> Result<Message, ParseError>Expand description
Decode a stdin line into a Message. A line that is not valid JSON is a
ParseError::MalformedJson; valid JSON that is not a well-formed JSON-RPC
message is ParseError::InvalidRequest carrying the id (if extractable).