[][src]Function rmp_serde::decode::from_read

pub fn from_read<R, T>(rd: R) -> Result<T, Error> where
    R: Read,
    T: DeserializeOwned

Deserialize an instance of type T from an I/O stream of MessagePack.

Errors

This conversion can fail if the structure of the Value does not match the structure expected by T. It can also fail if the structure is correct but T's implementation of Deserialize decides that something is wrong with the data, for example required struct fields are missing.