pub trait Serializer: Unpin + Send { type Message: Send; // Required method fn encode(&mut self, response: Self::Message, buffer: &mut Vec<u8>); }
A serializer takes messages and produces outbound bytes.
The message type consumed by this serializer.
Encode a message into a buffer.