pub fn decode<T>(value: &[u8]) -> Result<T, DecodeError>where
T: for<'de> Deserialize<'de>,Expand description
Decodes the given blob into a value of type T.
This deserializes the bytes into a value of T with postcard.
pub fn decode<T>(value: &[u8]) -> Result<T, DecodeError>where
T: for<'de> Deserialize<'de>,Decodes the given blob into a value of type T.
This deserializes the bytes into a value of T with postcard.