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

Accept

The server accepts the handshake request.

Show fields

Fields of Accept

key: WebSocketKeyprotocol: Option<&'a str>
Reject

The server rejects the handshake request.

Show fields

Fields of Reject

status_code: u16

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

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.