Function rmp_serde::decode::from_read
[−]
[src]
pub fn from_read<'de, R, T>(rd: R) -> Result<T, Error> where
R: Read,
T: Deserialize<'de>,
Deserialize an instance of type T
from an I/O stream of MessagePack.
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.