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