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.
pub trait FromStream<S>: Sized {
fn from_stream<R: Read>(stream: &mut R) -> Result<Self, ReadError>;
}
A trait for types, which can be read from streams.