Enum cobalt::ConnectionState
[−]
[src]
pub enum ConnectionState { Connecting, Connected, FailedToConnect, Lost, Closing, Closed, }
Enum indicating the 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.
Closing
The connection is about to be closed.
Closed
The connection has been closed programmatically.
Trait Implementations
impl Debug for ConnectionState
[src]
impl Copy for ConnectionState
[src]
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