Function postcard::from_io

source ยท
pub fn from_io<'a, T, R>(
    val: (R, &'a mut [u8]),
) -> Result<(T, (R, &'a mut [u8]))>
where T: Deserialize<'a>, R: Read + 'a,
Expand description

Deserialize a message of type T from a std::io::Read.