pub trait SerializePdu {
// Required method
fn serialize_pdu(
&self,
version: SupportedVersion,
buf: &mut BytesMut,
) -> u16;
}Expand description
Trait that implements writing a PduBody to a buffer
based on the protocol version of the PDU.
Returns the number of bytes written to the buffer.