pub trait Decode {
// Required method
fn decode(buffer: &[u8]) -> Result<Self, Exception>
where Self: Sized;
}Expand description
This trait must be implemented to allow an arbitrary sized buffer to be deserialized.
§Errors
Exception generated when the buffer fails to be decoded to the target type.