Trait chain_ser::deser::Deserialize
source · pub trait Deserialize: Sized {
// Required method
fn deserialize<R: Read>(codec: &mut Codec<R>) -> Result<Self, ReadError>;
// Provided method
fn deserialize_validate<R: Read>(
codec: &mut Codec<R>
) -> Result<(), ReadError> { ... }
}
Expand description
Define that an object that can be read from an std::io::Read
object.