Enum cobalt::ConnectionState [] [src]

pub enum ConnectionState {
    Connecting,
    Connected,
    FailedToConnect,
    Lost,
    Closing,
    Closed,
}

Enum indicating the state of a connection.

Variants

The connection has been opened but has yet to receive the first incoming packet.

The remote has responded and at least one incoming packet has been received.

The remote did not respond with the first packet within the maximum configured time frame for establishing a connection.

The remote did not send any packets within the maximum configured time frame between any two packets.

The connection is about to be closed.

The connection has been closed programmatically.

Trait Implementations

impl Debug for ConnectionState
[src]

Formats the value using the given formatter.

impl Copy for ConnectionState
[src]

impl Clone for ConnectionState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ConnectionState
[src]

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

This method tests for !=.