pub enum EspHttpWsConnection {
New(httpd_handle_t, *mut httpd_req_t),
Receiving(httpd_handle_t, *mut httpd_req_t, Option<httpd_ws_frame_t>),
Closed(c_int),
}
Expand description
A Websocket connection between this server and a client.
Returns true
when the connection still hasn’t received any data
Returns true
when the connection already has been closed.
Sends a frame to the client.
Receives a frame from the client.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.