pub fn decode_payload(payload: &[u8]) -> Result<Message>
Decodes the payload of one frame, without its length header.
Returns io::ErrorKind::InvalidData if payload does not hold a Postcard-encoded Message.
io::ErrorKind::InvalidData
payload
Message