pub fn from_reader<R, T>(r: R) -> Result<T> where R: Read, T: DeserializeOwned,
Deserializes an instance of T from the bytes of an io::Read type.
T
io::Read
Deserialization can fail if the data is not valid, if the data cannot cannot be deserialized into an instance of T, and other IO errors.