Enum cobalt::ServerEvent [] [src]

pub enum ServerEvent {
    Connection(ConnectionID),
    ConnectionLost(ConnectionID),
    ConnectionClosed(ConnectionIDbool),
    Message(ConnectionIDVec<u8>),
    ConnectionCongestionStateChanged(ConnectionIDbool),
    PacketLost(ConnectionIDVec<u8>),
}

Enum of server network events.

Variants

Event emitted once a new client connection has been established.

Event emitted when a existing client connection is lost.

Event emitted when a client connection is closed programmatically.

Event emitted for each message received from a client connection.

Event emitted each time a client's connection congestion state changes.

Event emitted each time a client connection packet is lost.

Trait Implementations

impl Debug for ServerEvent
[src]

Formats the value using the given formatter.

impl PartialEq for ServerEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.