Enum soketto::handshake::client::ServerResponse[][src]

pub enum ServerResponse {
    Accepted {
        protocol: Option<String>,
    },
    Redirect {
        status_code: u16,
        location: String,
    },
    Rejected {
        status_code: u16,
    },
}
Expand description

Handshake response received from the server.

Variants

Accepted

The server has accepted our request.

Show fields

Fields of Accepted

protocol: Option<String>

The protocol (if any) the server has selected.

Redirect

The server is redirecting us to some other location.

Show fields

Fields of Redirect

status_code: u16

The HTTP response status code.

location: String

The location URL we should go to.

Rejected

The server rejected our request.

Show fields

Fields of Rejected

status_code: u16

HTTP response status code.

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.