Enum ws_tool::ConnectionState
source · pub enum ConnectionState {
Created,
HandShaking,
Running,
Closing,
Closed,
}
Expand description
websocket connection state
Variants§
Created
init state
HandShaking
tcp & tls connection creating state
Running
websocket connection has been successfully established
Closing
client or peer has send “close frame”
Closed
client or peer have send “close” response frame
Trait Implementations§
source§impl Clone for ConnectionState
impl Clone for ConnectionState
source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionState
impl Debug for ConnectionState
source§impl PartialEq<ConnectionState> for ConnectionState
impl PartialEq<ConnectionState> for ConnectionState
source§fn eq(&self, other: &ConnectionState) -> bool
fn eq(&self, other: &ConnectionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.