pub trait PacketWrite<T: WritablePacket> { // Required method fn write_packet(&mut self, value: &T) -> Result<()>; }