From da8ca65a3dc89992ab842f8319136b71d4c855cb Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 4 Feb 2023 02:47:09 +0100 Subject: [PATCH] . --- kubi-udp/src/packet.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubi-udp/src/packet.rs b/kubi-udp/src/packet.rs index 8b5b8d2..d824d2c 100644 --- a/kubi-udp/src/packet.rs +++ b/kubi-udp/src/packet.rs @@ -17,6 +17,9 @@ pub struct IdClientPacket(pub Option, pub ClientPa #[derive(Encode, Decode)] pub enum ServerPacket where T: Encode + Decode { Data(T), - Connected, + Connected(ClientId), Disconnected, } + +#[derive(Encode, Decode)] +pub struct IdServerPacket(pub Option, pub ServerPacket);