[−][src]Function bt_bencode::from_reader
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.
Errors
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.