Skip to main content

decode_message

Function decode_message 

Source
pub fn decode_message<'a, T: Deserialize<'a>>(bytes: &'a [u8]) -> Result<T>
Expand description

Decode any deserializable value from MessagePack bytes.

This is the generic version of decode — it works with any type that implements serde::Deserialize, not just ValueEnvelope.