pub fn decode<T>(bytes: &[u8]) -> Result<T, Error>where T: DeserializeOwned,
Decode a value produced by encode.
encode
Returns the decoder’s error for truncated or malformed input.