Enum cobalt::ServerEvent [] [src]

pub enum ServerEvent {
    Connection(ConnectionID),
    ConnectionLost(ConnectionIDbool),
    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.

The contained boolean indicates whether the connection was lost due to an isse the remote end, if the value is false instead, then a local issue caused the connection to be lost.

Event emitted when a client connection is closed programmatically.

The contained boolean indicates whether the connection was closed by the remote end, if the value is false instead, then the connection was closed locally.

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 !=.