pub enum ClientPacket {
Join {
username: String,
password: String,
},
Move(MoveDirection),
Chat(String),
}Expand description
Packets sent by the client to the server.
Variants§
Join
First packet sent.
Move(MoveDirection)
Decide where to move.
Chat(String)
Send a message to chat.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientPacket
impl RefUnwindSafe for ClientPacket
impl Send for ClientPacket
impl Sync for ClientPacket
impl Unpin for ClientPacket
impl UnsafeUnpin for ClientPacket
impl UnwindSafe for ClientPacket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more