Skip to main content

decode_payload

Function decode_payload 

Source
pub fn decode_payload(payload: &[u8]) -> Result<Message>
Expand description

Decodes the payload of one frame, without its length header.

ยงErrors

Returns io::ErrorKind::InvalidData if payload does not hold a Postcard-encoded Message.