pub fn decode_payload(bytes: &[u8]) -> Res<Payload>
Decodes a retained Payload envelope (the inverse of encode_payload).
Payload
encode_payload
Returns an error if the bytes are not a valid encoded envelope.