pub fn marshal( packets: &[Box<dyn Packet + Send + Sync>] ) -> Result<Bytes, Error>
marshal takes an array of Packets and serializes them to a single buffer