Trait protosocket::Serializer

source ·
pub trait Serializer: Unpin {
    type Message: Send;

    // Required method
    fn encode(&mut self, response: Self::Message, buffer: &mut impl BufMut);
}

Required Associated Types§

Required Methods§

source

fn encode(&mut self, response: Self::Message, buffer: &mut impl BufMut)

Object Safety§

This trait is not object safe.

Implementors§