pub trait SerializablePacket { // Required method fn serialize(&self, buffer: &mut [u8]) -> Result<u64>; }