[−][src]Trait starling::traits::Encode
This trait must be implemented to allow a struct to be serialized.
Required methods
fn encode(&self) -> Result<Vec<u8>, Exception>
Encodes a struct into bytes.
Errors
Exception
generated when the method encoding the structure fails.