pub trait Serializable<T> {
// Required methods
fn read(reader: &mut dyn Read) -> Result<T>
where Self: Sized;
fn write(&self, writer: &mut dyn Write) -> Result<()>;
}
Expand description
An object that may be serialized and deserialized