pub struct StatusCode(_);

Implementations

100 Continue (RFC7231, Section 6.2.1)

101 Switching Protocols (RFC7231, Section 6.2.2)

201 Created (RFC7231, Section 6.3.2)

202 Accepted (RFC7231, Section 6.3.3)

203 Non-Authoritative Information (RFC7231, Section 6.3.4)

204 No Content (RFC7231, Section 6.3.5)

205 Reset Content (RFC7231, Section 6.3.6)

206 Partial Content (RFC7233, Section 4.1)

300 Multiple Choices (RFC7231, Section 6.4.1)

301 Moved Permanently (RFC7231, Section 6.4.2)

303 See Other (RFC7231, Section 6.4.4)

304 Not Modified (RFC7232, Section 4.1)

305 Use Proxy (RFC7231, Section 6.4.5)

307 Temporary Redirect (RFC7231, Section 6.4.7)

400 Bad Request (RFC7231, Section 6.5.1)

401 Unauthorized (RFC7235, Section 3.1)

402 Payment Required (RFC7231, Section 6.5.2)

403 Forbidden (RFC7231, Section 6.5.3)

404 Not Found (RFC7231, Section 6.5.4)

405 Method Not Allowed (RFC7231, Section 6.5.5)

406 Not Acceptable (RFC7231, Section 6.5.6)

407 Proxy Authentication Required (RFC7235, Section 3.2)

408 Request Timeout (RFC7231, Section 6.5.7)

409 Conflict (RFC7231, Section 6.5.8)

411 Length Required (RFC7231, Section 6.5.10)

412 Precondition Failed (RFC7232, Section 4.2)

413 Payload Too Large (RFC7231, Section 6.5.11)

414 URI Too Long (RFC7231, Section 6.5.12)

415 Unsupported Media Type (RFC7231, Section 6.5.13)

416 Range Not Satisfiable (RFC7233, Section 4.4)

417 Expectation Failed (RFC7231, Section 6.5.14)

426 Upgrade Required (RFC7231, Section 6.5.15)

500 Internal Server Error (RFC7231, Section 6.6.1)

501 Not Implemented (RFC7231, Section 6.6.2)

502 Bad Gateway (RFC7231, Section 6.6.3)

503 Service Unavailable (RFC7231, Section 6.6.4)

504 Gateway Timeout (RFC7231, Section 6.6.5)

505 HTTP Version Not Supported (RFC7231, Section 6.6.6)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.