Trait Marshal

Source
pub trait Marshal: MarshalSize {
    // Required method
    fn marshal_to(&self, buf: &mut [u8]) -> Result<usize>;

    // Provided method
    fn marshal(&self) -> Result<BytesMut> { ... }
}

Required Methods§

Source

fn marshal_to(&self, buf: &mut [u8]) -> Result<usize>

Provided Methods§

Implementors§