pub fn encode(packet: Packet<'_>) -> Result<Vec<u8>, PacketError>
Host-side encoding of the same shape. State bytes do not enter this packet.