Enum embedded_websocket::WebSocketState [−][src]
pub enum WebSocketState { None, Connecting, Open, CloseSent, CloseReceived, Closed, Aborted, }
The state of the websocket
Variants
The websocket has been created with new_client()
or new_server()
The client has created an opening handshake
The server has completed the opening handshake via server_accept() or, likewise, the
client has completed the opening handshake via client_accept(). The user is free to call
write()
, read()
or close()
on the websocket
The close()
function has been called
A Close websocket frame has been received
The close handshake has been completed
The server or client opening handshake failed
Trait Implementations
impl Clone for WebSocketState
[src]
impl Clone for WebSocketState
[src]fn clone(&self) -> WebSocketState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WebSocketState
[src]
impl Copy for WebSocketState
[src]impl PartialEq<WebSocketState> for WebSocketState
[src]
impl PartialEq<WebSocketState> for WebSocketState
[src]impl StructuralPartialEq for WebSocketState
[src]
impl StructuralPartialEq for WebSocketState
[src]Auto Trait Implementations
impl RefUnwindSafe for WebSocketState
impl RefUnwindSafe for WebSocketState
impl Send for WebSocketState
impl Send for WebSocketState
impl Sync for WebSocketState
impl Sync for WebSocketState
impl Unpin for WebSocketState
impl Unpin for WebSocketState
impl UnwindSafe for WebSocketState
impl UnwindSafe for WebSocketState