decode_from_bytes

Function decode_from_bytes 

Source
pub fn decode_from_bytes<T>(bytes: Bytes) -> Result<T, Error>
where T: Decode,
Expand description

Decodes a given T from Bytes.