pub fn decode_from_bytes<T>(bytes: Bytes) -> Result<T, Error>where T: Decode,
Decodes a given T from Bytes.
T
Bytes