Trait data_stream::FromStream[][src]

pub trait FromStream<S>: Sized {
    fn from_stream<R: Read>(stream: &mut R) -> Result<Self, ReadError>;
}
Expand description

A trait for types, which can be read from streams.

Required methods

Reads a value of this type from a stream and returns it. Returns an error on failure instead.

Implementations on Foreign Types

Implementors