Skip to main content

parse

Function parse 

Source
pub fn parse(
    payload: &Bytes,
    format: PayloadFormat,
) -> Result<ParsedPayload, CodecError>
Available on crate feature transport only.
Expand description

Parse a framed payload into a native ParsedPayload.

§Errors

Returns CodecError::Json or CodecError::MsgPack when the bytes are malformed for the (detected or declared) format.