Trait webrtc_util::marshal::Marshal

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

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

Required Methods§

source

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

Provided Methods§

source

fn marshal(&self) -> Result<Bytes>

Implementors§