Skip to main content

parse_wire_message

Function parse_wire_message 

Source
pub fn parse_wire_message(raw: RawWireMessage) -> Result<WireMessage, WireError>
Expand description

Parse a raw wire message into a typed WireMessage.

ยงErrors

Returns WireError::JsonParse if the payload cannot be deserialized, or WireError::UnknownMessageType if the method field is unrecognized.