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