[][src]Trait starling::traits::Encode

pub trait Encode {
    fn encode(&self) -> Result<Vec<u8>, Exception>;
}

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.

Loading content...

Implementations on Foreign Types

impl Encode for Vec<u8>[src]

Loading content...

Implementors

Loading content...