Function xdr_codec::unpack [] [src]

pub fn unpack<In: Read, T: Unpack<In>>(input: &mut In) -> Result<T>

Deserialization (unpacking) helper function

This function will read encoded bytes from input (a Read implementation) and return a fully constructed type (or an error). This relies on type inference to determine which type is to be unpacked, so its up to the calling envionment to clarify this. (Generally it falls out quite naturally.)