Enum cobalt::ConnectionEvent [] [src]

pub enum ConnectionEvent {
    Connected,
    FailedToConnect,
    Lost,
    Closed(bool),
    Message(Vec<u8>),
    PacketLost(Vec<u8>),
    CongestionStateChanged(bool),
}

Enum of connection related network events.

Variants

Emitted once a the connection has been established.

Emitted when a connection attempt failed.

Emitted when the already established connection is lost.

Emitted when the already established connection is closed programmatically.

Emitted for each message that is received over the connection.

Event emitted for each packet which was not confirmed by the remote end of the connection within the specified limits.

Emitted each time the connection's congestion state changes.

Trait Implementations

impl Debug for ConnectionEvent
[src]

Formats the value using the given formatter.

impl PartialEq for ConnectionEvent
[src]

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

This method tests for !=.