Enum base::msg::ServerMessage [] [src]

pub enum ServerMessage {
    RegisterPlayer {
        id: u32,
    },
}

A message from the server to a client.

Variants

RegisterPlayer

Register a player currently playing on the same server.

Sent when a player joins the server or when this client just joined the server (it gets a list of all players currently on the server).

Fields

id: u32

Trait Implementations

impl Decodable for ServerMessage
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ServerMessage, __D::Error>

impl Encodable for ServerMessage
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>