Enum cobalt::shared::ConnectionState [] [src]

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

A value indicating the current state of a connection.

Variants

Connecting

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

Connected

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

FailedToConnect

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

Lost

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

Closed

The connection has been closed programmatically.

Trait Implementations

impl Clone for ConnectionState
[src]

fn clone(&self) -> ConnectionState

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ConnectionState
[src]

impl PartialEq for ConnectionState
[src]

fn eq(&self, __arg_0: &ConnectionState) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.