Files
google-apis-rs/hyper/struct.StatusCode.html
2021-04-02 00:20:57 +08:00

243 lines
100 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 `hyper`."><meta name="keywords" content="rust, rustlang, rust-lang, StatusCode"><title>hyper::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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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><a href='../hyper/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Struct StatusCode</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.as_str">as_str</a><a href="#method.as_u16">as_u16</a><a href="#method.canonical_reason">canonical_reason</a><a href="#method.from_bytes">from_bytes</a><a href="#method.from_u16">from_u16</a><a href="#method.is_client_error">is_client_error</a><a href="#method.is_informational">is_informational</a><a href="#method.is_redirection">is_redirection</a><a href="#method.is_server_error">is_server_error</a><a href="#method.is_success">is_success</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3C%26%27a%20StatusCode%3E">From&lt;&amp;&#39;a StatusCode&gt;</a><a href="#impl-FromStr">FromStr</a><a href="#impl-Hash">Hash</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CStatusCode%3E">PartialEq&lt;StatusCode&gt;</a><a href="#impl-PartialEq%3Cu16%3E">PartialEq&lt;u16&gt;</a><a href="#impl-PartialOrd%3CStatusCode%3E">PartialOrd&lt;StatusCode&gt;</a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a><a href="#impl-TryFrom%3C%26%27a%20%5Bu8%5D%3E">TryFrom&lt;&amp;&#39;a [u8]&gt;</a><a href="#impl-TryFrom%3C%26%27a%20str%3E">TryFrom&lt;&amp;&#39;a str&gt;</a><a href="#impl-TryFrom%3Cu16%3E">TryFrom&lt;u16&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-Equivalent%3CK%3E">Equivalent&lt;K&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class="location"><a href="index.html">hyper</a></p><div id="sidebar-vars" data-name="StatusCode" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<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="in-band">Struct <a href="index.html">hyper</a>::<wbr><a class="struct" href="">StatusCode</a></span><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="../src/http/status.rs.html#45" title="goto source code">[src]</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>Constants are provided for known status codes, including those in the IANA
<a href="https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml">HTTP Status Code Registry</a>.</p>
<p>Status code values in the range 100-999 (inclusive) are supported by this
type. Values in the range 100-599 are semantically classified by the most
significant digit. See <a href="../hyper/struct.StatusCode.html#method.is_success" title="StatusCode::is_success"><code>StatusCode::is_success</code></a>, etc. Values above 599
are unclassified but allowed for legacy compatibility, though their use is
discouraged. Applications may interpret such values as protocol errors.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<div class="example-wrap"><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>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#55-200" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from_u16" class="method"><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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>, <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a>&gt;</code><a class="srclink" href="../src/http/status.rs.html#73" title="goto source code">[src]</a></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 and less than 1000.</p>
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
<div class="example-wrap"><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>
</div><h4 id="method.from_bytes" class="method"><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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>, <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a>&gt;</code><a class="srclink" href="../src/http/status.rs.html#84" title="goto source code">[src]</a></h4><div class="docblock"><p>Converts a &amp;<a href="../std/primitive.u8.html" title="u8">u8</a> to a status code</p>
</div><h4 id="method.as_u16" class="method"><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><a class="srclink" href="../src/http/status.rs.html#119" title="goto source code">[src]</a></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>
<div class="example-wrap"><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>
</div><h4 id="method.as_str" class="method"><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><a class="srclink" href="../src/http/status.rs.html#135" title="goto source code">[src]</a></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>
<div class="example-wrap"><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>
</div><h4 id="method.canonical_reason" class="method"><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><a class="srclink" href="../src/http/status.rs.html#167" title="goto source code">[src]</a></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 and HTTP/3.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>
<div class="example-wrap"><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>
</div><h4 id="method.is_informational" class="method"><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><a class="srclink" href="../src/http/status.rs.html#173" title="goto source code">[src]</a></h4><div class="docblock"><p>Check if status is within 100-199.</p>
</div><h4 id="method.is_success" class="method"><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><a class="srclink" href="../src/http/status.rs.html#179" title="goto source code">[src]</a></h4><div class="docblock"><p>Check if status is within 200-299.</p>
</div><h4 id="method.is_redirection" class="method"><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><a class="srclink" href="../src/http/status.rs.html#185" title="goto source code">[src]</a></h4><div class="docblock"><p>Check if status is within 300-399.</p>
</div><h4 id="method.is_client_error" class="method"><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><a class="srclink" href="../src/http/status.rs.html#191" title="goto source code">[src]</a></h4><div class="docblock"><p>Check if status is within 400-499.</p>
</div><h4 id="method.is_server_error" class="method"><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><a class="srclink" href="../src/http/status.rs.html#197" title="goto source code">[src]</a></h4><div class="docblock"><p>Check if status is within 500-599.</p>
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedconstant.CONTINUE" class="associatedconstant"><code>pub const <a href="#associatedconstant.CONTINUE" class="constant"><b>CONTINUE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.SWITCHING_PROTOCOLS" class="constant"><b>SWITCHING_PROTOCOLS</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PROCESSING" class="constant"><b>PROCESSING</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.OK" class="constant"><b>OK</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.CREATED" class="constant"><b>CREATED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.ACCEPTED" class="constant"><b>ACCEPTED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NON_AUTHORITATIVE_INFORMATION" class="constant"><b>NON_AUTHORITATIVE_INFORMATION</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NO_CONTENT" class="constant"><b>NO_CONTENT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.RESET_CONTENT" class="constant"><b>RESET_CONTENT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PARTIAL_CONTENT" class="constant"><b>PARTIAL_CONTENT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.MULTI_STATUS" class="constant"><b>MULTI_STATUS</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.ALREADY_REPORTED" class="constant"><b>ALREADY_REPORTED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.IM_USED" class="constant"><b>IM_USED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.MULTIPLE_CHOICES" class="constant"><b>MULTIPLE_CHOICES</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.MOVED_PERMANENTLY" class="constant"><b>MOVED_PERMANENTLY</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.FOUND" class="constant"><b>FOUND</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.SEE_OTHER" class="constant"><b>SEE_OTHER</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NOT_MODIFIED" class="constant"><b>NOT_MODIFIED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.USE_PROXY" class="constant"><b>USE_PROXY</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.TEMPORARY_REDIRECT" class="constant"><b>TEMPORARY_REDIRECT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PERMANENT_REDIRECT" class="constant"><b>PERMANENT_REDIRECT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.BAD_REQUEST" class="constant"><b>BAD_REQUEST</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.UNAUTHORIZED" class="constant"><b>UNAUTHORIZED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PAYMENT_REQUIRED" class="constant"><b>PAYMENT_REQUIRED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.FORBIDDEN" class="constant"><b>FORBIDDEN</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NOT_FOUND" class="constant"><b>NOT_FOUND</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.METHOD_NOT_ALLOWED" class="constant"><b>METHOD_NOT_ALLOWED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NOT_ACCEPTABLE" class="constant"><b>NOT_ACCEPTABLE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PROXY_AUTHENTICATION_REQUIRED" class="constant"><b>PROXY_AUTHENTICATION_REQUIRED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.REQUEST_TIMEOUT" class="constant"><b>REQUEST_TIMEOUT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.CONFLICT" class="constant"><b>CONFLICT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.GONE" class="constant"><b>GONE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.LENGTH_REQUIRED" class="constant"><b>LENGTH_REQUIRED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PRECONDITION_FAILED" class="constant"><b>PRECONDITION_FAILED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PAYLOAD_TOO_LARGE" class="constant"><b>PAYLOAD_TOO_LARGE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.URI_TOO_LONG" class="constant"><b>URI_TOO_LONG</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.UNSUPPORTED_MEDIA_TYPE" class="constant"><b>UNSUPPORTED_MEDIA_TYPE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.RANGE_NOT_SATISFIABLE" class="constant"><b>RANGE_NOT_SATISFIABLE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.EXPECTATION_FAILED" class="constant"><b>EXPECTATION_FAILED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.IM_A_TEAPOT" class="constant"><b>IM_A_TEAPOT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.MISDIRECTED_REQUEST" class="constant"><b>MISDIRECTED_REQUEST</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.UNPROCESSABLE_ENTITY" class="constant"><b>UNPROCESSABLE_ENTITY</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.LOCKED" class="constant"><b>LOCKED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.FAILED_DEPENDENCY" class="constant"><b>FAILED_DEPENDENCY</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.UPGRADE_REQUIRED" class="constant"><b>UPGRADE_REQUIRED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.PRECONDITION_REQUIRED" class="constant"><b>PRECONDITION_REQUIRED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.TOO_MANY_REQUESTS" class="constant"><b>TOO_MANY_REQUESTS</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.UNAVAILABLE_FOR_LEGAL_REASONS" class="constant"><b>UNAVAILABLE_FOR_LEGAL_REASONS</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.INTERNAL_SERVER_ERROR" class="constant"><b>INTERNAL_SERVER_ERROR</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NOT_IMPLEMENTED" class="constant"><b>NOT_IMPLEMENTED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.BAD_GATEWAY" class="constant"><b>BAD_GATEWAY</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.SERVICE_UNAVAILABLE" class="constant"><b>SERVICE_UNAVAILABLE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.GATEWAY_TIMEOUT" class="constant"><b>GATEWAY_TIMEOUT</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.HTTP_VERSION_NOT_SUPPORTED" class="constant"><b>HTTP_VERSION_NOT_SUPPORTED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.VARIANT_ALSO_NEGOTIATES" class="constant"><b>VARIANT_ALSO_NEGOTIATES</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.INSUFFICIENT_STORAGE" class="constant"><b>INSUFFICIENT_STORAGE</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.LOOP_DETECTED" class="constant"><b>LOOP_DETECTED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NOT_EXTENDED" class="constant"><b>NOT_EXTENDED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></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"><code>pub const <a href="#associatedconstant.NETWORK_AUTHENTICATION_REQUIRED" class="constant"><b>NETWORK_AUTHENTICATION_REQUIRED</b></a>: <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#323-515" title="goto source code">[src]</a></h4><div class="docblock"><p>511 Network Authentication Required
[<a href="https://tools.ietf.org/html/rfc6585">RFC6585</a>]</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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 class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-Copy" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#202-206" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>pub 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>&lt;'_&gt;) -&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><a class="srclink" href="../src/http/status.rs.html#203" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-Default" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#227-232" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#229" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-Display" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#216-225" title="goto source code">[src]</a></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>
<div class="example-wrap"><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><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>pub 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>&lt;'_&gt;) -&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><a class="srclink" href="../src/http/status.rs.html#217" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-Eq" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-From%3C%26%27a%20StatusCode%3E" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-From%3C%26%27a%20StatusCode%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#263-268" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a class="srclink" href="../src/http/status.rs.html#265" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-FromStr" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a> for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-FromStr" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#255-261" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Err" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html#associatedtype.Err" class="type">Err</a> = <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4 id="method.from_str" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/str/traits/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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>, <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a>&gt;</code><a class="srclink" href="../src/http/status.rs.html#258" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html#tymethod.from_str">Read more</a></p>
</div></div><h3 id="impl-Hash" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Hash" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.hash" class="method hidden"><code>pub 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><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <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 hidden"><code>pub 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 class="since" title="Stable since Rust version 1.3.0">1.3.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#184-186" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <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-Ord" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Ord" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.cmp" class="method hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::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><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> 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 hidden"><code><span class="docblock attributes">#[must_use]</span>pub 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 class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#723-725" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code><span class="docblock attributes">#[must_use]</span>pub 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 class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#743-745" title="goto source code">[src]</a></h4><div class='docblock hidden'><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><h4 id="method.clamp" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp" class="fnname">clamp</a>(self, min: Self, max: Self) -&gt; Self</code><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#768-770" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></div><h3 id="impl-PartialEq%3CStatusCode%3E" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-PartialEq%3CStatusCode%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq-1" class="method hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id="impl-PartialEq%3Cu16%3E" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-PartialEq%3Cu16%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#234-239" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>pub 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><a class="srclink" href="../src/http/status.rs.html#236" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code><span class="docblock attributes">#[must_use]</span>pub 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 class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id="impl-PartialOrd%3CStatusCode%3E" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-PartialOrd%3CStatusCode%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.partial_cmp" class="method hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::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><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#44" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-TryFrom%3C%26%27a%20%5Bu8%5D%3E" class="impl"><code class="in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-TryFrom%3C%26%27a%20%5Bu8%5D%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#270-277" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</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://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="../src/http/status.rs.html#274" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryFrom%3C%26%27a%20str%3E" class="impl"><code class="in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-TryFrom%3C%26%27a%20str%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#279-286" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from-1" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</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://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="../src/http/status.rs.html#283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryFrom%3Cu16%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-TryFrom%3Cu16%3E" class="anchor"></a><a class="srclink" href="../src/http/status.rs.html#288-295" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-2" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="struct" href="../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from-2" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</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://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="../src/http/status.rs.html#292" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</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-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../src/hyper/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../src/hyper/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">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="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../src/hyper/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../src/hyper/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../hyper/struct.StatusCode.html" title="struct hyper::StatusCode">StatusCode</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../src/hyper/lib.rs.html#1" title="goto source code">[src]</a></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-Any" class="impl"><code class="in-band">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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">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>&lt;T&gt; 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%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><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%3CT%3E" class="impl"><code class="in-band">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>&lt;T&gt; 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%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-Equivalent%3CK%3E" class="impl"><code class="in-band">impl&lt;Q, K&gt; <a class="trait" href="../indexmap/equivalent/trait.Equivalent.html" title="trait indexmap::equivalent::Equivalent">Equivalent</a>&lt;K&gt; 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%3CK%3E" class="anchor"></a><a class="srclink" href="../src/indexmap/equivalent.rs.html#18-27" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.equivalent" class="method hidden"><code>pub fn <a href="../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><a class="srclink" href="../src/indexmap/equivalent.rs.html#24" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Compare self to <code>key</code> and return <code>true</code> if they are equal.</p>
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">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>&lt;T&gt; for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-1" class="method hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-Instrument" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</code><a href="#impl-Instrument" class="anchor"></a><a class="srclink" href="../src/tracing/instrument.rs.html#155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument" class="method hidden"><code>pub fn <a href="../tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</code><a class="srclink" href="../src/tracing/instrument.rs.html#38" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
</div><h4 id="method.in_current_span" class="method hidden"><code>pub fn <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</code><a class="srclink" href="../src/tracing/instrument.rs.html#74" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="../struct.Span.html#method.current">current</a> <code>Span</code>, returning an
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">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>&lt;U&gt; 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%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-ToOwned" class="impl"><code class="in-band">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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Owned" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4 id="method.to_owned" class="method hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85" title="goto source code">[src]</a></h4><div class='docblock hidden'><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 hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><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"><code class="in-band">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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2203-2216" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.to_string" class="method hidden"><code>pub default 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2209" title="goto source code">[src]</a></h4><div class='docblock hidden'><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-TryFrom%3CU%3E" class="impl"><code class="in-band">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>&lt;U&gt; 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.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-3" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from-3" class="method hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">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>&lt;U&gt; 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%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-4" class="type"><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></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_into" class="method hidden"><code>pub 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><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="hyper"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>