[−][src]Trait starling::traits::Decode
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.
Required methods
fn decode(buffer: &[u8]) -> Result<Self, Exception> where
Self: Sized,
Self: Sized,
Decodes bytes into a Sized
struct.
Errors
Exception
generated when the buffer fails to be decoded to the target type.