Enum cobalt::ServerEvent
[−]
[src]
pub enum ServerEvent { Connection(ConnectionID), ConnectionLost(ConnectionID), ConnectionClosed(ConnectionID, bool), Message(ConnectionID, Vec<u8>), ConnectionCongestionStateChanged(ConnectionID, bool), PacketLost(ConnectionID, Vec<u8>), }
Enum of server network events.
Variants
Connection(ConnectionID)
Event emitted once a new client connection has been established.
ConnectionLost(ConnectionID)
Event emitted when a existing client connection is lost.
ConnectionClosed(ConnectionID, bool)
Event emitted when a client connection is closed programmatically.
Message(ConnectionID, Vec<u8>)
Event emitted for each message received from a client connection.
ConnectionCongestionStateChanged(ConnectionID, bool)
Event emitted each time a client's connection congestion state changes.
PacketLost(ConnectionID, Vec<u8>)
Event emitted each time a client connection packet is lost.
Trait Implementations
impl Debug for ServerEvent
[src]
impl PartialEq for ServerEvent
[src]
fn eq(&self, __arg_0: &ServerEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ServerEvent) -> bool
This method tests for !=
.