pub trait FromBytes {
// Required method
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32,
) -> Result<Self, Box<dyn Error + Sync + Send>>
where Self: Sized;
}
Expand description
The FromBytes
trait needs to be implemented by all types
that need to be decoded.