mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 21:08:19 -06:00
.
This commit is contained in:
parent
78edba4c02
commit
da8ca65a3d
|
@ -17,6 +17,9 @@ pub struct IdClientPacket<T: Encode + Decode>(pub Option<ClientId>, pub ClientPa
|
||||||
#[derive(Encode, Decode)]
|
#[derive(Encode, Decode)]
|
||||||
pub enum ServerPacket<T> where T: Encode + Decode {
|
pub enum ServerPacket<T> where T: Encode + Decode {
|
||||||
Data(T),
|
Data(T),
|
||||||
Connected,
|
Connected(ClientId),
|
||||||
Disconnected,
|
Disconnected,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Encode, Decode)]
|
||||||
|
pub struct IdServerPacket<T: Encode + Decode>(pub Option<ClientId>, pub ServerPacket<T>);
|
||||||
|
|
Loading…
Reference in a new issue