Trait buffertk::Unpackable
source · pub trait Unpackable<'a>: Sized {
type Error;
// Required method
fn unpack<'b: 'a>(buf: &'b [u8]) -> Result<(Self, &'b [u8]), Self::Error>;
}Expand description
Unpackable objects can be deserialized from an &[u8].
The format understood by T:Unpackable must correspond to the format serialized by
T:Packable.