Enum netcode::ServerEvent [] [src]

pub enum ServerEvent {
    ClientConnect(u64),
    ClientDisconnect(u64),
    ClientSlotFull,
    Packet(u64usize),
    SentKeepAlive(u64),
    RejectedClient,
    ReplayRejected(u64),
}

Describes event the server receives when calling next_event(..).

Variants

A client has connected, contains a reference to the client that was just created. out_packet contains private user data from token.

A client has disconnected, contains the client that was just disconnected.

Called when client tries to connect but all slots are full.

We received a packet, out_packet will be filled with data based on usize, contains the client id that reieved the packet and length of the packet.

We received a keep alive packet with included client id.

Client failed connection token validation

Replay detection heard duplicate packet and rejected it.

Trait Implementations

impl Debug for ServerEvent
[src]

Formats the value using the given formatter.