1
0
mirror of https://github.com/actix/actix-website synced 2024-12-04 20:51:54 +01:00
actix-website/static/api/actix-web/0.7.12/actix_web/http/struct.StatusCode.html
2018-10-10 08:38:33 -07:00

297 lines
121 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `StatusCode` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, StatusCode"><title>actix_web::http::StatusCode - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><p class='location'>Struct StatusCode</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.from_u16">from_u16</a><a href="#method.from_bytes">from_bytes</a><a href="#method.as_u16">as_u16</a><a href="#method.as_str">as_str</a><a href="#method.canonical_reason">canonical_reason</a><a href="#method.is_informational">is_informational</a><a href="#method.is_success">is_success</a><a href="#method.is_redirection">is_redirection</a><a href="#method.is_client_error">is_client_error</a><a href="#method.is_server_error">is_server_error</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Hash">Hash</a><a href="#impl-Copy">Copy</a><a href="#impl-Default">Default</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3Cu16%3E">PartialEq&lt;u16&gt;</a><a href="#impl-PartialEq%3CStatusCode%3E">PartialEq&lt;StatusCode&gt;</a><a href="#impl-Display">Display</a><a href="#impl-FromStr">FromStr</a><a href="#impl-HttpTryFrom%3CStatusCode%3E">HttpTryFrom&lt;StatusCode&gt;</a><a href="#impl-HttpTryFrom%3Cu16%3E">HttpTryFrom&lt;u16&gt;</a><a href="#impl-HttpTryFrom%3C%26%27a%20StatusCode%3E">HttpTryFrom&lt;&amp;&#39;a StatusCode&gt;</a><a href="#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E">HttpTryFrom&lt;&amp;&#39;a [u8]&gt;</a><a href="#impl-HttpTryFrom%3C%26%27a%20str%3E">HttpTryFrom&lt;&amp;&#39;a str&gt;</a><a href="#impl-From%3C%26%27a%20StatusCode%3E">From&lt;&amp;&#39;a StatusCode&gt;</a><a href="#impl-PartialOrd%3CStatusCode%3E">PartialOrd&lt;StatusCode&gt;</a><a href="#impl-Clone">Clone</a><a href="#impl-Ord">Ord</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-From">From</a><a href="#impl-Into">Into</a><a href="#impl-TryFrom">TryFrom</a><a href="#impl-Borrow">Borrow</a><a href="#impl-BorrowMut">BorrowMut</a><a href="#impl-TryInto">TryInto</a><a href="#impl-Any">Any</a><a href="#impl-Erased">Erased</a><a href="#impl-Equivalent">Equivalent</a></div></div><p class='location'><a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>http</a></p><script>window.sidebarCurrent = {name: 'StatusCode', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press S to search, ? for more options…" type="search"><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#43' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>http</a>::<wbr><a class="struct" href=''>StatusCode</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct StatusCode(_);</pre></div><div class='docblock'><p>An HTTP status code (<code>status-code</code> in RFC 7230 et al.).</p>
<p>This type contains constants for all common status codes.
It allows status codes in the range [100, 599].</p>
<p>IANA maintain the <a href="http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml">Hypertext Transfer Protocol (HTTP) Status Code
Registry</a> which is
the source for this enum (with one exception, 418 I'm a teapot, which is
inexplicably not in the register).</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">http</span>::<span class="ident">StatusCode</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">StatusCode</span>::<span class="ident">from_u16</span>(<span class="number">200</span>).<span class="ident">unwrap</span>(), <span class="ident">StatusCode</span>::<span class="ident">OK</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">StatusCode</span>::<span class="ident">NOT_FOUND</span>.<span class="ident">as_u16</span>(), <span class="number">404</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">StatusCode</span>::<span class="ident">OK</span>.<span class="ident">is_success</span>());</pre>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#54-185' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from_u16' class="method"><span id='from_u16.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.from_u16' class='fnname'>from_u16</a>(src: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#72-78' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Converts a u16 to a status code.</p>
<p>The function validates the correctness of the supplied u16. It must be
greater or equal to 100 but less than 600.</p>
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">http</span>::<span class="ident">StatusCode</span>;
<span class="kw">let</span> <span class="ident">ok</span> <span class="op">=</span> <span class="ident">StatusCode</span>::<span class="ident">from_u16</span>(<span class="number">200</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">ok</span>, <span class="ident">StatusCode</span>::<span class="ident">OK</span>);
<span class="kw">let</span> <span class="ident">err</span> <span class="op">=</span> <span class="ident">StatusCode</span>::<span class="ident">from_u16</span>(<span class="number">99</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">err</span>.<span class="ident">is_err</span>());</pre>
</div><h4 id='method.from_bytes' class="method"><span id='from_bytes.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.from_bytes' class='fnname'>from_bytes</a>(src: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#81-96' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Converts a &amp;<a href="https://docs.rs/http/0.1.13/std/primitive.u8.html" title="u8">u8</a> to a status code</p>
</div><h4 id='method.as_u16' class="method"><span id='as_u16.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.as_u16' class='fnname'>as_u16</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#114-116' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the <code>u16</code> corresponding to this <code>StatusCode</code>.</p>
<h1 id="note" class="section-header"><a href="#note">Note</a></h1>
<p>This is the same as the <code>From&lt;StatusCode&gt;</code> implementation, but
included as an inherent method because that implementation doesn't
appear in rustdocs, as well as a way to force the type instead of
relying on inference.</p>
<h1 id="example-1" class="section-header"><a href="#example-1">Example</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">status</span> <span class="op">=</span> <span class="ident">http</span>::<span class="ident">StatusCode</span>::<span class="ident">OK</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">status</span>.<span class="ident">as_u16</span>(), <span class="number">200</span>);</pre>
</div><h4 id='method.as_str' class="method"><span id='as_str.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.as_str' class='fnname'>as_str</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a &amp;str representation of the <code>StatusCode</code></p>
<p>The return value only includes a numerical representation of the
status code. The canonical reason is not included.</p>
<h1 id="example-2" class="section-header"><a href="#example-2">Example</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">status</span> <span class="op">=</span> <span class="ident">http</span>::<span class="ident">StatusCode</span>::<span class="ident">OK</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">status</span>.<span class="ident">as_str</span>(), <span class="string">&quot;200&quot;</span>);</pre>
</div><h4 id='method.canonical_reason' class="method"><span id='canonical_reason.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.canonical_reason' class='fnname'>canonical_reason</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#151-153' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Get the standardised <code>reason-phrase</code> for this status code.</p>
<p>This is mostly here for servers writing responses, but could potentially have application
at other times.</p>
<p>The reason phrase is defined as being exclusively for human readers. You should avoid
deriving any meaning from it at all costs.</p>
<p>Bear in mind also that in HTTP/2.0 the reason phrase is abolished from transmission, and so
this canonical reason phrase really is the only reason phrase youll find.</p>
<h1 id="example-3" class="section-header"><a href="#example-3">Example</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">status</span> <span class="op">=</span> <span class="ident">http</span>::<span class="ident">StatusCode</span>::<span class="ident">OK</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">status</span>.<span class="ident">canonical_reason</span>(), <span class="prelude-val">Some</span>(<span class="string">&quot;OK&quot;</span>));</pre>
</div><h4 id='method.is_informational' class="method"><span id='is_informational.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_informational' class='fnname'>is_informational</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#158-160' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if status is within 100-199.</p>
</div><h4 id='method.is_success' class="method"><span id='is_success.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_success' class='fnname'>is_success</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#164-166' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if status is within 200-299.</p>
</div><h4 id='method.is_redirection' class="method"><span id='is_redirection.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_redirection' class='fnname'>is_redirection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#170-172' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if status is within 300-399.</p>
</div><h4 id='method.is_client_error' class="method"><span id='is_client_error.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_client_error' class='fnname'>is_client_error</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#176-178' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if status is within 400-499.</p>
</div><h4 id='method.is_server_error' class="method"><span id='is_server_error.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_server_error' class='fnname'>is_server_error</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#182-184' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if status is within 500-599.</p>
</div></div><h3 id='impl-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#302-308' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedconstant.CONTINUE' class="associatedconstant"><span id='CONTINUE.v' class='invisible'><code>pub const <a href='#associatedconstant.CONTINUE' class="constant"><b>CONTINUE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>100 Continue
[<a href="https://tools.ietf.org/html/rfc7231#section-6.2.1">RFC7231, Section 6.2.1</a>]</p>
</div><h4 id='associatedconstant.SWITCHING_PROTOCOLS' class="associatedconstant"><span id='SWITCHING_PROTOCOLS.v' class='invisible'><code>pub const <a href='#associatedconstant.SWITCHING_PROTOCOLS' class="constant"><b>SWITCHING_PROTOCOLS</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>101 Switching Protocols
[<a href="https://tools.ietf.org/html/rfc7231#section-6.2.2">RFC7231, Section 6.2.2</a>]</p>
</div><h4 id='associatedconstant.PROCESSING' class="associatedconstant"><span id='PROCESSING.v' class='invisible'><code>pub const <a href='#associatedconstant.PROCESSING' class="constant"><b>PROCESSING</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>102 Processing
[<a href="https://tools.ietf.org/html/rfc2518">RFC2518</a>]</p>
</div><h4 id='associatedconstant.OK' class="associatedconstant"><span id='OK.v' class='invisible'><code>pub const <a href='#associatedconstant.OK' class="constant"><b>OK</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>200 OK
[<a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">RFC7231, Section 6.3.1</a>]</p>
</div><h4 id='associatedconstant.CREATED' class="associatedconstant"><span id='CREATED.v' class='invisible'><code>pub const <a href='#associatedconstant.CREATED' class="constant"><b>CREATED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>201 Created
[<a href="https://tools.ietf.org/html/rfc7231#section-6.3.2">RFC7231, Section 6.3.2</a>]</p>
</div><h4 id='associatedconstant.ACCEPTED' class="associatedconstant"><span id='ACCEPTED.v' class='invisible'><code>pub const <a href='#associatedconstant.ACCEPTED' class="constant"><b>ACCEPTED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>202 Accepted
[<a href="https://tools.ietf.org/html/rfc7231#section-6.3.3">RFC7231, Section 6.3.3</a>]</p>
</div><h4 id='associatedconstant.NON_AUTHORITATIVE_INFORMATION' class="associatedconstant"><span id='NON_AUTHORITATIVE_INFORMATION.v' class='invisible'><code>pub const <a href='#associatedconstant.NON_AUTHORITATIVE_INFORMATION' class="constant"><b>NON_AUTHORITATIVE_INFORMATION</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>203 Non-Authoritative Information
[<a href="https://tools.ietf.org/html/rfc7231#section-6.3.4">RFC7231, Section 6.3.4</a>]</p>
</div><h4 id='associatedconstant.NO_CONTENT' class="associatedconstant"><span id='NO_CONTENT.v' class='invisible'><code>pub const <a href='#associatedconstant.NO_CONTENT' class="constant"><b>NO_CONTENT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>204 No Content
[<a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">RFC7231, Section 6.3.5</a>]</p>
</div><h4 id='associatedconstant.RESET_CONTENT' class="associatedconstant"><span id='RESET_CONTENT.v' class='invisible'><code>pub const <a href='#associatedconstant.RESET_CONTENT' class="constant"><b>RESET_CONTENT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>205 Reset Content
[<a href="https://tools.ietf.org/html/rfc7231#section-6.3.6">RFC7231, Section 6.3.6</a>]</p>
</div><h4 id='associatedconstant.PARTIAL_CONTENT' class="associatedconstant"><span id='PARTIAL_CONTENT.v' class='invisible'><code>pub const <a href='#associatedconstant.PARTIAL_CONTENT' class="constant"><b>PARTIAL_CONTENT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>206 Partial Content
[<a href="https://tools.ietf.org/html/rfc7233#section-4.1">RFC7233, Section 4.1</a>]</p>
</div><h4 id='associatedconstant.MULTI_STATUS' class="associatedconstant"><span id='MULTI_STATUS.v' class='invisible'><code>pub const <a href='#associatedconstant.MULTI_STATUS' class="constant"><b>MULTI_STATUS</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>207 Multi-Status
[<a href="https://tools.ietf.org/html/rfc4918">RFC4918</a>]</p>
</div><h4 id='associatedconstant.ALREADY_REPORTED' class="associatedconstant"><span id='ALREADY_REPORTED.v' class='invisible'><code>pub const <a href='#associatedconstant.ALREADY_REPORTED' class="constant"><b>ALREADY_REPORTED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>208 Already Reported
[<a href="https://tools.ietf.org/html/rfc5842">RFC5842</a>]</p>
</div><h4 id='associatedconstant.IM_USED' class="associatedconstant"><span id='IM_USED.v' class='invisible'><code>pub const <a href='#associatedconstant.IM_USED' class="constant"><b>IM_USED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>226 IM Used
[<a href="https://tools.ietf.org/html/rfc3229">RFC3229</a>]</p>
</div><h4 id='associatedconstant.MULTIPLE_CHOICES' class="associatedconstant"><span id='MULTIPLE_CHOICES.v' class='invisible'><code>pub const <a href='#associatedconstant.MULTIPLE_CHOICES' class="constant"><b>MULTIPLE_CHOICES</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>300 Multiple Choices
[<a href="https://tools.ietf.org/html/rfc7231#section-6.4.1">RFC7231, Section 6.4.1</a>]</p>
</div><h4 id='associatedconstant.MOVED_PERMANENTLY' class="associatedconstant"><span id='MOVED_PERMANENTLY.v' class='invisible'><code>pub const <a href='#associatedconstant.MOVED_PERMANENTLY' class="constant"><b>MOVED_PERMANENTLY</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>301 Moved Permanently
[<a href="https://tools.ietf.org/html/rfc7231#section-6.4.2">RFC7231, Section 6.4.2</a>]</p>
</div><h4 id='associatedconstant.FOUND' class="associatedconstant"><span id='FOUND.v' class='invisible'><code>pub const <a href='#associatedconstant.FOUND' class="constant"><b>FOUND</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>302 Found
[<a href="https://tools.ietf.org/html/rfc7231#section-6.4.3">RFC7231, Section 6.4.3</a>]</p>
</div><h4 id='associatedconstant.SEE_OTHER' class="associatedconstant"><span id='SEE_OTHER.v' class='invisible'><code>pub const <a href='#associatedconstant.SEE_OTHER' class="constant"><b>SEE_OTHER</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>303 See Other
[<a href="https://tools.ietf.org/html/rfc7231#section-6.4.4">RFC7231, Section 6.4.4</a>]</p>
</div><h4 id='associatedconstant.NOT_MODIFIED' class="associatedconstant"><span id='NOT_MODIFIED.v' class='invisible'><code>pub const <a href='#associatedconstant.NOT_MODIFIED' class="constant"><b>NOT_MODIFIED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>304 Not Modified
[<a href="https://tools.ietf.org/html/rfc7232#section-4.1">RFC7232, Section 4.1</a>]</p>
</div><h4 id='associatedconstant.USE_PROXY' class="associatedconstant"><span id='USE_PROXY.v' class='invisible'><code>pub const <a href='#associatedconstant.USE_PROXY' class="constant"><b>USE_PROXY</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>305 Use Proxy
[<a href="https://tools.ietf.org/html/rfc7231#section-6.4.5">RFC7231, Section 6.4.5</a>]</p>
</div><h4 id='associatedconstant.TEMPORARY_REDIRECT' class="associatedconstant"><span id='TEMPORARY_REDIRECT.v' class='invisible'><code>pub const <a href='#associatedconstant.TEMPORARY_REDIRECT' class="constant"><b>TEMPORARY_REDIRECT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>307 Temporary Redirect
[<a href="https://tools.ietf.org/html/rfc7231#section-6.4.7">RFC7231, Section 6.4.7</a>]</p>
</div><h4 id='associatedconstant.PERMANENT_REDIRECT' class="associatedconstant"><span id='PERMANENT_REDIRECT.v' class='invisible'><code>pub const <a href='#associatedconstant.PERMANENT_REDIRECT' class="constant"><b>PERMANENT_REDIRECT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>308 Permanent Redirect
[<a href="https://tools.ietf.org/html/rfc7238">RFC7238</a>]</p>
</div><h4 id='associatedconstant.BAD_REQUEST' class="associatedconstant"><span id='BAD_REQUEST.v' class='invisible'><code>pub const <a href='#associatedconstant.BAD_REQUEST' class="constant"><b>BAD_REQUEST</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>400 Bad Request
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">RFC7231, Section 6.5.1</a>]</p>
</div><h4 id='associatedconstant.UNAUTHORIZED' class="associatedconstant"><span id='UNAUTHORIZED.v' class='invisible'><code>pub const <a href='#associatedconstant.UNAUTHORIZED' class="constant"><b>UNAUTHORIZED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>401 Unauthorized
[<a href="https://tools.ietf.org/html/rfc7235#section-3.1">RFC7235, Section 3.1</a>]</p>
</div><h4 id='associatedconstant.PAYMENT_REQUIRED' class="associatedconstant"><span id='PAYMENT_REQUIRED.v' class='invisible'><code>pub const <a href='#associatedconstant.PAYMENT_REQUIRED' class="constant"><b>PAYMENT_REQUIRED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>402 Payment Required
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.2">RFC7231, Section 6.5.2</a>]</p>
</div><h4 id='associatedconstant.FORBIDDEN' class="associatedconstant"><span id='FORBIDDEN.v' class='invisible'><code>pub const <a href='#associatedconstant.FORBIDDEN' class="constant"><b>FORBIDDEN</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>403 Forbidden
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.3">RFC7231, Section 6.5.3</a>]</p>
</div><h4 id='associatedconstant.NOT_FOUND' class="associatedconstant"><span id='NOT_FOUND.v' class='invisible'><code>pub const <a href='#associatedconstant.NOT_FOUND' class="constant"><b>NOT_FOUND</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>404 Not Found
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">RFC7231, Section 6.5.4</a>]</p>
</div><h4 id='associatedconstant.METHOD_NOT_ALLOWED' class="associatedconstant"><span id='METHOD_NOT_ALLOWED.v' class='invisible'><code>pub const <a href='#associatedconstant.METHOD_NOT_ALLOWED' class="constant"><b>METHOD_NOT_ALLOWED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>405 Method Not Allowed
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.5">RFC7231, Section 6.5.5</a>]</p>
</div><h4 id='associatedconstant.NOT_ACCEPTABLE' class="associatedconstant"><span id='NOT_ACCEPTABLE.v' class='invisible'><code>pub const <a href='#associatedconstant.NOT_ACCEPTABLE' class="constant"><b>NOT_ACCEPTABLE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>406 Not Acceptable
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.6">RFC7231, Section 6.5.6</a>]</p>
</div><h4 id='associatedconstant.PROXY_AUTHENTICATION_REQUIRED' class="associatedconstant"><span id='PROXY_AUTHENTICATION_REQUIRED.v' class='invisible'><code>pub const <a href='#associatedconstant.PROXY_AUTHENTICATION_REQUIRED' class="constant"><b>PROXY_AUTHENTICATION_REQUIRED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>407 Proxy Authentication Required
[<a href="https://tools.ietf.org/html/rfc7235#section-3.2">RFC7235, Section 3.2</a>]</p>
</div><h4 id='associatedconstant.REQUEST_TIMEOUT' class="associatedconstant"><span id='REQUEST_TIMEOUT.v' class='invisible'><code>pub const <a href='#associatedconstant.REQUEST_TIMEOUT' class="constant"><b>REQUEST_TIMEOUT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>408 Request Timeout
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.7">RFC7231, Section 6.5.7</a>]</p>
</div><h4 id='associatedconstant.CONFLICT' class="associatedconstant"><span id='CONFLICT.v' class='invisible'><code>pub const <a href='#associatedconstant.CONFLICT' class="constant"><b>CONFLICT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>409 Conflict
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.8">RFC7231, Section 6.5.8</a>]</p>
</div><h4 id='associatedconstant.GONE' class="associatedconstant"><span id='GONE.v' class='invisible'><code>pub const <a href='#associatedconstant.GONE' class="constant"><b>GONE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>410 Gone
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.9">RFC7231, Section 6.5.9</a>]</p>
</div><h4 id='associatedconstant.LENGTH_REQUIRED' class="associatedconstant"><span id='LENGTH_REQUIRED.v' class='invisible'><code>pub const <a href='#associatedconstant.LENGTH_REQUIRED' class="constant"><b>LENGTH_REQUIRED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>411 Length Required
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.10">RFC7231, Section 6.5.10</a>]</p>
</div><h4 id='associatedconstant.PRECONDITION_FAILED' class="associatedconstant"><span id='PRECONDITION_FAILED.v' class='invisible'><code>pub const <a href='#associatedconstant.PRECONDITION_FAILED' class="constant"><b>PRECONDITION_FAILED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>412 Precondition Failed
[<a href="https://tools.ietf.org/html/rfc7232#section-4.2">RFC7232, Section 4.2</a>]</p>
</div><h4 id='associatedconstant.PAYLOAD_TOO_LARGE' class="associatedconstant"><span id='PAYLOAD_TOO_LARGE.v' class='invisible'><code>pub const <a href='#associatedconstant.PAYLOAD_TOO_LARGE' class="constant"><b>PAYLOAD_TOO_LARGE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>413 Payload Too Large
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.11">RFC7231, Section 6.5.11</a>]</p>
</div><h4 id='associatedconstant.URI_TOO_LONG' class="associatedconstant"><span id='URI_TOO_LONG.v' class='invisible'><code>pub const <a href='#associatedconstant.URI_TOO_LONG' class="constant"><b>URI_TOO_LONG</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>414 URI Too Long
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">RFC7231, Section 6.5.12</a>]</p>
</div><h4 id='associatedconstant.UNSUPPORTED_MEDIA_TYPE' class="associatedconstant"><span id='UNSUPPORTED_MEDIA_TYPE.v' class='invisible'><code>pub const <a href='#associatedconstant.UNSUPPORTED_MEDIA_TYPE' class="constant"><b>UNSUPPORTED_MEDIA_TYPE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>415 Unsupported Media Type
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.13">RFC7231, Section 6.5.13</a>]</p>
</div><h4 id='associatedconstant.RANGE_NOT_SATISFIABLE' class="associatedconstant"><span id='RANGE_NOT_SATISFIABLE.v' class='invisible'><code>pub const <a href='#associatedconstant.RANGE_NOT_SATISFIABLE' class="constant"><b>RANGE_NOT_SATISFIABLE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>416 Range Not Satisfiable
[<a href="https://tools.ietf.org/html/rfc7233#section-4.4">RFC7233, Section 4.4</a>]</p>
</div><h4 id='associatedconstant.EXPECTATION_FAILED' class="associatedconstant"><span id='EXPECTATION_FAILED.v' class='invisible'><code>pub const <a href='#associatedconstant.EXPECTATION_FAILED' class="constant"><b>EXPECTATION_FAILED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>417 Expectation Failed
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.14">RFC7231, Section 6.5.14</a>]</p>
</div><h4 id='associatedconstant.IM_A_TEAPOT' class="associatedconstant"><span id='IM_A_TEAPOT.v' class='invisible'><code>pub const <a href='#associatedconstant.IM_A_TEAPOT' class="constant"><b>IM_A_TEAPOT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>418 I'm a teapot
[curiously not registered by IANA but <a href="https://tools.ietf.org/html/rfc2324">RFC2324</a>]</p>
</div><h4 id='associatedconstant.MISDIRECTED_REQUEST' class="associatedconstant"><span id='MISDIRECTED_REQUEST.v' class='invisible'><code>pub const <a href='#associatedconstant.MISDIRECTED_REQUEST' class="constant"><b>MISDIRECTED_REQUEST</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>421 Misdirected Request
<a href="http://tools.ietf.org/html/rfc7540#section-9.1.2">RFC7540, Section 9.1.2</a></p>
</div><h4 id='associatedconstant.UNPROCESSABLE_ENTITY' class="associatedconstant"><span id='UNPROCESSABLE_ENTITY.v' class='invisible'><code>pub const <a href='#associatedconstant.UNPROCESSABLE_ENTITY' class="constant"><b>UNPROCESSABLE_ENTITY</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>422 Unprocessable Entity
[<a href="https://tools.ietf.org/html/rfc4918">RFC4918</a>]</p>
</div><h4 id='associatedconstant.LOCKED' class="associatedconstant"><span id='LOCKED.v' class='invisible'><code>pub const <a href='#associatedconstant.LOCKED' class="constant"><b>LOCKED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>423 Locked
[<a href="https://tools.ietf.org/html/rfc4918">RFC4918</a>]</p>
</div><h4 id='associatedconstant.FAILED_DEPENDENCY' class="associatedconstant"><span id='FAILED_DEPENDENCY.v' class='invisible'><code>pub const <a href='#associatedconstant.FAILED_DEPENDENCY' class="constant"><b>FAILED_DEPENDENCY</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>424 Failed Dependency
[<a href="https://tools.ietf.org/html/rfc4918">RFC4918</a>]</p>
</div><h4 id='associatedconstant.UPGRADE_REQUIRED' class="associatedconstant"><span id='UPGRADE_REQUIRED.v' class='invisible'><code>pub const <a href='#associatedconstant.UPGRADE_REQUIRED' class="constant"><b>UPGRADE_REQUIRED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>426 Upgrade Required
[<a href="https://tools.ietf.org/html/rfc7231#section-6.5.15">RFC7231, Section 6.5.15</a>]</p>
</div><h4 id='associatedconstant.PRECONDITION_REQUIRED' class="associatedconstant"><span id='PRECONDITION_REQUIRED.v' class='invisible'><code>pub const <a href='#associatedconstant.PRECONDITION_REQUIRED' class="constant"><b>PRECONDITION_REQUIRED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>428 Precondition Required
[<a href="https://tools.ietf.org/html/rfc6585">RFC6585</a>]</p>
</div><h4 id='associatedconstant.TOO_MANY_REQUESTS' class="associatedconstant"><span id='TOO_MANY_REQUESTS.v' class='invisible'><code>pub const <a href='#associatedconstant.TOO_MANY_REQUESTS' class="constant"><b>TOO_MANY_REQUESTS</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>429 Too Many Requests
[<a href="https://tools.ietf.org/html/rfc6585">RFC6585</a>]</p>
</div><h4 id='associatedconstant.REQUEST_HEADER_FIELDS_TOO_LARGE' class="associatedconstant"><span id='REQUEST_HEADER_FIELDS_TOO_LARGE.v' class='invisible'><code>pub const <a href='#associatedconstant.REQUEST_HEADER_FIELDS_TOO_LARGE' class="constant"><b>REQUEST_HEADER_FIELDS_TOO_LARGE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>431 Request Header Fields Too Large
[<a href="https://tools.ietf.org/html/rfc6585">RFC6585</a>]</p>
</div><h4 id='associatedconstant.UNAVAILABLE_FOR_LEGAL_REASONS' class="associatedconstant"><span id='UNAVAILABLE_FOR_LEGAL_REASONS.v' class='invisible'><code>pub const <a href='#associatedconstant.UNAVAILABLE_FOR_LEGAL_REASONS' class="constant"><b>UNAVAILABLE_FOR_LEGAL_REASONS</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>451 Unavailable For Legal Reasons
[<a href="http://tools.ietf.org/html/rfc7725">RFC7725</a>]</p>
</div><h4 id='associatedconstant.INTERNAL_SERVER_ERROR' class="associatedconstant"><span id='INTERNAL_SERVER_ERROR.v' class='invisible'><code>pub const <a href='#associatedconstant.INTERNAL_SERVER_ERROR' class="constant"><b>INTERNAL_SERVER_ERROR</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>500 Internal Server Error
[<a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">RFC7231, Section 6.6.1</a>]</p>
</div><h4 id='associatedconstant.NOT_IMPLEMENTED' class="associatedconstant"><span id='NOT_IMPLEMENTED.v' class='invisible'><code>pub const <a href='#associatedconstant.NOT_IMPLEMENTED' class="constant"><b>NOT_IMPLEMENTED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>501 Not Implemented
[<a href="https://tools.ietf.org/html/rfc7231#section-6.6.2">RFC7231, Section 6.6.2</a>]</p>
</div><h4 id='associatedconstant.BAD_GATEWAY' class="associatedconstant"><span id='BAD_GATEWAY.v' class='invisible'><code>pub const <a href='#associatedconstant.BAD_GATEWAY' class="constant"><b>BAD_GATEWAY</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>502 Bad Gateway
[<a href="https://tools.ietf.org/html/rfc7231#section-6.6.3">RFC7231, Section 6.6.3</a>]</p>
</div><h4 id='associatedconstant.SERVICE_UNAVAILABLE' class="associatedconstant"><span id='SERVICE_UNAVAILABLE.v' class='invisible'><code>pub const <a href='#associatedconstant.SERVICE_UNAVAILABLE' class="constant"><b>SERVICE_UNAVAILABLE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>503 Service Unavailable
[<a href="https://tools.ietf.org/html/rfc7231#section-6.6.4">RFC7231, Section 6.6.4</a>]</p>
</div><h4 id='associatedconstant.GATEWAY_TIMEOUT' class="associatedconstant"><span id='GATEWAY_TIMEOUT.v' class='invisible'><code>pub const <a href='#associatedconstant.GATEWAY_TIMEOUT' class="constant"><b>GATEWAY_TIMEOUT</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>504 Gateway Timeout
[<a href="https://tools.ietf.org/html/rfc7231#section-6.6.5">RFC7231, Section 6.6.5</a>]</p>
</div><h4 id='associatedconstant.HTTP_VERSION_NOT_SUPPORTED' class="associatedconstant"><span id='HTTP_VERSION_NOT_SUPPORTED.v' class='invisible'><code>pub const <a href='#associatedconstant.HTTP_VERSION_NOT_SUPPORTED' class="constant"><b>HTTP_VERSION_NOT_SUPPORTED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>505 HTTP Version Not Supported
[<a href="https://tools.ietf.org/html/rfc7231#section-6.6.6">RFC7231, Section 6.6.6</a>]</p>
</div><h4 id='associatedconstant.VARIANT_ALSO_NEGOTIATES' class="associatedconstant"><span id='VARIANT_ALSO_NEGOTIATES.v' class='invisible'><code>pub const <a href='#associatedconstant.VARIANT_ALSO_NEGOTIATES' class="constant"><b>VARIANT_ALSO_NEGOTIATES</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>506 Variant Also Negotiates
[<a href="https://tools.ietf.org/html/rfc2295">RFC2295</a>]</p>
</div><h4 id='associatedconstant.INSUFFICIENT_STORAGE' class="associatedconstant"><span id='INSUFFICIENT_STORAGE.v' class='invisible'><code>pub const <a href='#associatedconstant.INSUFFICIENT_STORAGE' class="constant"><b>INSUFFICIENT_STORAGE</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>507 Insufficient Storage
[<a href="https://tools.ietf.org/html/rfc4918">RFC4918</a>]</p>
</div><h4 id='associatedconstant.LOOP_DETECTED' class="associatedconstant"><span id='LOOP_DETECTED.v' class='invisible'><code>pub const <a href='#associatedconstant.LOOP_DETECTED' class="constant"><b>LOOP_DETECTED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>508 Loop Detected
[<a href="https://tools.ietf.org/html/rfc5842">RFC5842</a>]</p>
</div><h4 id='associatedconstant.NOT_EXTENDED' class="associatedconstant"><span id='NOT_EXTENDED.v' class='invisible'><code>pub const <a href='#associatedconstant.NOT_EXTENDED' class="constant"><b>NOT_EXTENDED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>510 Not Extended
[<a href="https://tools.ietf.org/html/rfc2774">RFC2774</a>]</p>
</div><h4 id='associatedconstant.NETWORK_AUTHENTICATION_REQUIRED' class="associatedconstant"><span id='NETWORK_AUTHENTICATION_REQUIRED.v' class='invisible'><code>pub const <a href='#associatedconstant.NETWORK_AUTHENTICATION_REQUIRED' class="constant"><b>NETWORK_AUTHENTICATION_REQUIRED</b></a>: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#305' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>511 Network Authentication Required
[<a href="https://tools.ietf.org/html/rfc6585">RFC6585</a>]</p>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#187-191' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#188-190' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Hash' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Hash' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.hash' class="method"><span id='hash.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a>&lt;__H&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>__H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4 id='method.hash_slice' class="method"><span id='hash_slice.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a>&lt;H&gt;(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.3.0'>1.3.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#203-209' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#208-213' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#210-212' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3Cu16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-PartialEq%3Cu16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#215-220' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#217-219' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code><div class="docblock attributes">#[must_use]
</div>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#209' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-PartialEq%3CStatusCode%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-PartialEq%3CStatusCode%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq-1' class="method"><span id='eq.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne-1' class="method"><span id='ne.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#201-206' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Formats the status code, <em>including</em> the canonical reason.</p>
<h1 id="example-4" class="section-header"><a href="#example-4">Example</a></h1>
<pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;{}&quot;</span>, <span class="ident">StatusCode</span>::<span class="ident">OK</span>), <span class="string">&quot;200 OK&quot;</span>);</pre>
</div><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#202-205' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-FromStr' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-FromStr' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#236-242' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err' class="type"><span id='Err.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err' class="type">Err</a> = <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></span></h4>
<div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4 id='method.from_str' class="method"><span id='from_str.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str' class='fnname'>from_str</a>(s: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#239-241' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str">Read more</a></p>
</div></div><h3 id='impl-HttpTryFrom%3CStatusCode%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3CStatusCode%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/convert.rs.html#27-33' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="https://docs.rs/http/0.1.13/http/error/struct.Error.html" title="struct http::error::Error">Error</a></code></span></h4>
<div class='docblock'><p>Associated error with the conversion this implementation represents.</p>
</div><h4 id='method.try_from' class="method"><span id='try_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a> as <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt;&gt;::<a class="type" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error" title="type http::convert::HttpTryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/convert.rs.html#30-32' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-HttpTryFrom%3Cu16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3Cu16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#278-285' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><span id='Error.t-1' class='invisible'><code>type <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></span></h4>
<div class='docblock'><p>Associated error with the conversion this implementation represents.</p>
</div><h4 id='method.try_from-1' class="method"><span id='try_from.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a> as <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;::<a class="type" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error" title="type http::convert::HttpTryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#282-284' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20StatusCode%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20StatusCode%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#251-258' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><span id='Error.t-2' class='invisible'><code>type <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error' class="type">Error</a> = Never</code></span></h4>
<div class='docblock'><p>Associated error with the conversion this implementation represents.</p>
</div><h4 id='method.try_from-2' class="method"><span id='try_from.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a> as <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt;&gt;::<a class="type" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error" title="type http::convert::HttpTryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#255-257' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#260-267' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error-3' class="type"><span id='Error.t-3' class='invisible'><code>type <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></span></h4>
<div class='docblock'><p>Associated error with the conversion this implementation represents.</p>
</div><h4 id='method.try_from-3' class="method"><span id='try_from.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a> as <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error" title="type http::convert::HttpTryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#264-266' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#269-276' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error-4' class="type"><span id='Error.t-4' class='invisible'><code>type <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="https://docs.rs/http/0.1.13/http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></span></h4>
<div class='docblock'><p>Associated error with the conversion this implementation represents.</p>
</div><h4 id='method.try_from-4' class="method"><span id='try_from.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a> as <a class="trait" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="https://docs.rs/http/0.1.13/http/convert/trait.HttpTryFrom.html#associatedtype.Error" title="type http::convert::HttpTryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#273-275' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-From%3C%26%27a%20StatusCode%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-From%3C%26%27a%20StatusCode%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#244-249' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: &amp;'a <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#246-248' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-PartialOrd%3CStatusCode%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-PartialOrd%3CStatusCode%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.partial_cmp' class="method"><span id='partial_cmp.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp' class='fnname'>partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4 id='method.lt' class="method"><span id='lt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt' class='fnname'>lt</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4 id='method.le' class="method"><span id='le.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le' class='fnname'>le</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4 id='method.gt' class="method"><span id='gt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt' class='fnname'>gt</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div><h4 id='method.ge' class="method"><span id='ge.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge' class='fnname'>ge</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-Ord' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Ord' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.cmp' class="method"><span id='cmp.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&amp;self, other: &amp;<a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/http/0.1.13/src/http/status.rs.html#42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method returns an <code>Ordering</code> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div><h4 id='method.max' class="method"><span id='max.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.21.0'>1.21.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#556-559' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div><h4 id='method.min' class="method"><span id='min.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.21.0'>1.21.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#573-576' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../actix_web/http/struct.StatusCode.html" title="struct actix_web::http::StatusCode">StatusCode</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-ToOwned' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href='#impl-ToOwned' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#90-101' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><span id='Owned.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></span></h4>
<h4 id='method.to_owned' class="method"><span id='to_owned.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&amp;self) -&gt; T</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#94-96' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4 id='method.clone_into' class="method"><span id='clone_into.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#98-100' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3 id='impl-ToString' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-ToString' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2145-2155' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.to_string' class="method"><span id='to_string.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string' class='fnname'>to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2147-2154' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></div><h3 id='impl-From' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a> for T</code><a href='#impl-From' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#462-464' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#463' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#453-458' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.into' class="method"><span id='into.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#455-457' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryFrom' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;U&gt;,&nbsp;</span></code><a href='#impl-TryFrom' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#481-487' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error-5' class="type"><span id='Error.t-5' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.never.html">!</a></code></span></h4>
<div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>try_from</code>)</div></div><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from-5' class="method"><span id='try_from.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#484-486' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>try_from</code>)</div></div><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Borrow' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219-221' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.borrow' class="method"><span id='borrow.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-BorrowMut' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#224-226' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method"><span id='borrow_mut.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#225' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-TryInto' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#469-476' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Error-6' class="type"><span id='Error.t-6' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></span></h4>
<div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>try_from</code>)</div></div><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method"><span id='try_into.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#473-475' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>try_from</code>)</div></div><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Any' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#114-116' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.get_type_id' class="method"><span id='get_type_id.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.get_type_id' class='fnname'>get_type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#115' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API. (<code>get_type_id</code>)</summary><p>this method will likely be replaced by an associated static</p>
</details></div></div><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.get_type_id">Read more</a></p>
</div></div><h3 id='impl-Erased' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; Erased for T</code><a href='#impl-Erased' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Equivalent' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;Q, K&gt; <a class="trait" href="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html" title="trait indexmap::equivalent::Equivalent">Equivalent</a> for Q <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Equivalent' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#19-27' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.equivalent' class="method"><span id='equivalent.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html#tymethod.equivalent' class='fnname'>equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>K) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#24-26' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Compare self to <code>key</code> and return <code>true</code> if they are equal.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "actix_web";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>