Enum soketto::handshake::server::Response [−][src]
pub enum Response<'a> {
Accept {
key: &'a [u8],
protocol: Option<&'a str>,
},
Reject {
status_code: u16,
},
}Handshake response the server sends back to the client.
Variants
The server accepts the handshake request.
The server rejects the handshake request.
Show fields
Fields of Reject
status_code: u16