pub enum HttpServerRequest {
ConnectWebSocket {
web_socket_id: u64,
headers: HttpServerHeaders,
response_sender: Sender<Vec<u8>>,
},
DisconnectWebSocket {
web_socket_id: u64,
},
BinaryMessage {
web_socket_id: u64,
response_sender: Sender<Vec<u8>>,
data: Vec<u8>,
},
Get {
headers: HttpServerHeaders,
response_sender: Sender<HttpServerResponse>,
},
Post {
headers: HttpServerHeaders,
body: Vec<u8>,
response: Sender<HttpServerResponse>,
},
}
Variants§
Auto Trait Implementations§
impl Freeze for HttpServerRequest
impl RefUnwindSafe for HttpServerRequest
impl Send for HttpServerRequest
impl Sync for HttpServerRequest
impl Unpin for HttpServerRequest
impl UnwindSafe for HttpServerRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more