pub fn encode( packet: &Packet<'_>, out: &mut Vec<u8>, ) -> Result<usize, EncodeError>
Encode a packet, appending the wire bytes to out.
out
Returns the number of bytes appended.