Files
mercator_service/actix_http/http/trait.HttpTryFrom.html

24 lines
116 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 `HttpTryFrom` trait in crate `actix_http`."><meta name="keywords" content="rust, rustlang, rust-lang, HttpTryFrom"><title>actix_http::http::HttpTryFrom - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[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='../../actix_http/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Trait HttpTryFrom</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Error">Error</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>actix_http</a>::<wbr><a href='index.html'>http</a></p><script>window.sidebarCurrent = {name: 'HttpTryFrom', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><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><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/http/convert.rs.html#17-23' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>actix_http</a>::<wbr><a href='index.html'>http</a>::<wbr><a class="trait" href=''>HttpTryFrom</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait HttpTryFrom&lt;T&gt;: Sealed {
type <a href='#associatedtype.Error' class="type">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a>&gt;;
}</pre></div><div class='docblock'><p>Private trait for the <code>http</code> crate to have generic methods with fallible
conversions.</p>
<p>This trait is similar to the <code>TryFrom</code> trait proposed in the standard
library, except this is specialized for the <code>http</code> crate and isn't intended
for general consumption.</p>
<p>This trait cannot be implemented types outside of the <code>http</code> crate, and is
only intended for use as a generic bound on methods in the <code>http</code> crate.</p>
</div>
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.Error' class='method'><code id='Error.t'>type <a href='#associatedtype.Error' class="type">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a>&gt;</code></h3><div class='docblock'><p>Associated error with the conversion this implementation represents.</p>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-HttpTryFrom%3Ci16%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Ci16%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='#associatedtype.Error-1' class="type">Error</a> = Never</code></h4><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='#method.try_from' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Ci32%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Ci32%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='#associatedtype.Error-2' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-1' class="method hidden"><code id='try_from.v-1'>fn <a href='#method.try_from-1' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Ci64%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Ci64%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-3' class="type"><code id='Error.t-3'>type <a href='#associatedtype.Error-3' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-2' class="method hidden"><code id='try_from.v-2'>fn <a href='#method.try_from-2' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Cisize%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Cisize%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-4' class="type"><code id='Error.t-4'>type <a href='#associatedtype.Error-4' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-3' class="method hidden"><code id='try_from.v-3'>fn <a href='#method.try_from-3' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Cu16%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; for <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3Cu16%3E' class='anchor'></a><a class='srclink' href='../../src/http/status.rs.html#277-284' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-5' class="type"><code id='Error.t-5'>type <a href='#associatedtype.Error-5' class="type">Error</a> = <a class="struct" href="../../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><h4 id='method.try_from-4' class="method hidden"><code id='try_from.v-4'>fn <a href='#method.try_from-4' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/status.rs.html#281-283' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Cu16%3E-1' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Cu16%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-6' class="type"><code id='Error.t-6'>type <a href='#associatedtype.Error-6' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-5' class="method hidden"><code id='try_from.v-5'>fn <a href='#method.try_from-5' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Cu32%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Cu32%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-7' class="type"><code id='Error.t-7'>type <a href='#associatedtype.Error-7' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-6' class="method hidden"><code id='try_from.v-6'>fn <a href='#method.try_from-6' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Cu64%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Cu64%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-8' class="type"><code id='Error.t-8'>type <a href='#associatedtype.Error-8' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-7' class="method hidden"><code id='try_from.v-7'>fn <a href='#method.try_from-7' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3Cusize%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3Cusize%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#406-413' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-9' class="type"><code id='Error.t-9'>type <a href='#associatedtype.Error-9' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-8' class="method hidden"><code id='try_from.v-8'>fn <a href='#method.try_from-8' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#410-412' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CHeaderName%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a></code><a href='#impl-HttpTryFrom%3CHeaderName%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-10' class="type"><code id='Error.t-10'>type <a href='#associatedtype.Error-10' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-9' class="method hidden"><code id='try_from.v-9'>fn <a href='#method.try_from-9' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CHeaderName%3E-1' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3CHeaderName%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#558-566' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-11' class="type"><code id='Error.t-11'>type <a href='#associatedtype.Error-11' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderValue.html" title="struct actix_http::http::header::InvalidHeaderValue">InvalidHeaderValue</a></code></h4><h4 id='method.try_from-10' class="method hidden"><code id='try_from.v-10'>fn <a href='#method.try_from-10' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;name: <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#562-565' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CHeaderValue%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3CHeaderValue%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-12' class="type"><code id='Error.t-12'>type <a href='#associatedtype.Error-12' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-11' class="method hidden"><code id='try_from.v-11'>fn <a href='#method.try_from-11' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CMethod%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a></code><a href='#impl-HttpTryFrom%3CMethod%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-13' class="type"><code id='Error.t-13'>type <a href='#associatedtype.Error-13' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-12' class="method hidden"><code id='try_from.v-12'>fn <a href='#method.try_from-12' class='fnname'>try_from</a>(t: <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CStatusCode%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3CStatusCode%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-14' class="type"><code id='Error.t-14'>type <a href='#associatedtype.Error-14' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-13' class="method hidden"><code id='try_from.v-13'>fn <a href='#method.try_from-13' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CUri%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3CUri%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-15' class="type"><code id='Error.t-15'>type <a href='#associatedtype.Error-15' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-14' class="method hidden"><code id='try_from.v-14'>fn <a href='#method.try_from-14' class='fnname'>try_from</a>(t: <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CAuthority%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a></code><a href='#impl-HttpTryFrom%3CAuthority%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-16' class="type"><code id='Error.t-16'>type <a href='#associatedtype.Error-16' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-15' class="method hidden"><code id='try_from.v-15'>fn <a href='#method.try_from-15' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CParts%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/uri/struct.Parts.html" title="struct actix_http::http::uri::Parts">Parts</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3CParts%3E' class='anchor'></a><a class='srclink' href='../../src/http/uri/mod.rs.html#746-753' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-17' class="type"><code id='Error.t-17'>type <a href='#associatedtype.Error-17' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUriParts.html" title="struct actix_http::http::uri::InvalidUriParts">InvalidUriParts</a></code></h4><h4 id='method.try_from-16' class="method hidden"><code id='try_from.v-16'>fn <a href='#method.try_from-16' class='fnname'>try_from</a>(src: <a class="struct" href="../../actix_http/http/uri/struct.Parts.html" title="struct actix_http::http::uri::Parts">Parts</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Parts.html" title="struct actix_http::http::uri::Parts">Parts</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/mod.rs.html#750-752' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CPathAndQuery%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a></code><a href='#impl-HttpTryFrom%3CPathAndQuery%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-18' class="type"><code id='Error.t-18'>type <a href='#associatedtype.Error-18' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-17' class="method hidden"><code id='try_from.v-17'>fn <a href='#method.try_from-17' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CScheme%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a></code><a href='#impl-HttpTryFrom%3CScheme%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#43-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-19' class="type"><code id='Error.t-19'>type <a href='#associatedtype.Error-19' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-18' class="method hidden"><code id='try_from.v-18'>fn <a href='#method.try_from-18' class='fnname'>try_from</a>(t: <a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#46-48' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CBytes%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a></code><a href='#impl-HttpTryFrom%3CBytes%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/name.rs.html#1920-1926' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-20' class="type"><code id='Error.t-20'>type <a href='#associatedtype.Error-20' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderNameBytes.html" title="struct actix_http::http::header::InvalidHeaderNameBytes">InvalidHeaderNameBytes</a></code></h4><h4 id='method.try_from-19' class="method hidden"><code id='try_from.v-19'>fn <a href='#method.try_from-19' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;bytes: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/name.rs.html#1923-1925' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CBytes%3E-1' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3CBytes%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#549-556' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-21' class="type"><code id='Error.t-21'>type <a href='#associatedtype.Error-21' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderValueBytes.html" title="struct actix_http::http::header::InvalidHeaderValueBytes">InvalidHeaderValueBytes</a></code></h4><h4 id='method.try_from-20' class="method hidden"><code id='try_from.v-20'>fn <a href='#method.try_from-20' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;bytes: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#553-555' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CBytes%3E-2' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3CBytes%3E-2' class='anchor'></a><a class='srclink' href='../../src/http/uri/mod.rs.html#737-744' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-22' class="type"><code id='Error.t-22'>type <a href='#associatedtype.Error-22' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUriBytes.html" title="struct actix_http::http::uri::InvalidUriBytes">InvalidUriBytes</a></code></h4><h4 id='method.try_from-21' class="method hidden"><code id='try_from.v-21'>fn <a href='#method.try_from-21' class='fnname'>try_from</a>(t: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/mod.rs.html#741-743' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CBytes%3E-3' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a></code><a href='#impl-HttpTryFrom%3CBytes%3E-3' class='anchor'></a><a class='srclink' href='../../src/http/uri/authority.rs.html#440-446' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-23' class="type"><code id='Error.t-23'>type <a href='#associatedtype.Error-23' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUriBytes.html" title="struct actix_http::http::uri::InvalidUriBytes">InvalidUriBytes</a></code></h4><h4 id='method.try_from-22' class="method hidden"><code id='try_from.v-22'>fn <a href='#method.try_from-22' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;bytes: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/authority.rs.html#443-445' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CBytes%3E-4' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a></code><a href='#impl-HttpTryFrom%3CBytes%3E-4' class='anchor'></a><a class='srclink' href='../../src/http/uri/path.rs.html#287-293' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-24' class="type"><code id='Error.t-24'>type <a href='#associatedtype.Error-24' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUriBytes.html" title="struct actix_http::http::uri::InvalidUriBytes">InvalidUriBytes</a></code></h4><h4 id='method.try_from-23' class="method hidden"><code id='try_from.v-23'>fn <a href='#method.try_from-23' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;bytes: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/path.rs.html#290-292' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CBytes%3E-5' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a></code><a href='#impl-HttpTryFrom%3CBytes%3E-5' class='anchor'></a><a class='srclink' href='../../src/http/uri/scheme.rs.html#113-119' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-25' class="type"><code id='Error.t-25'>type <a href='#associatedtype.Error-25' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUriBytes.html" title="struct actix_http::http::uri::InvalidUriBytes">InvalidUriBytes</a></code></h4><h4 id='method.try_from-24' class="method hidden"><code id='try_from.v-24'>fn <a href='#method.try_from-24' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;bytes: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/scheme.rs.html#116-118' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CString%3E' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3CString%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#540-547' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-26' class="type"><code id='Error.t-26'>type <a href='#associatedtype.Error-26' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderValueBytes.html" title="struct actix_http::http::header::InvalidHeaderValueBytes">InvalidHeaderValueBytes</a></code></h4><h4 id='method.try_from-25' class="method hidden"><code id='try_from.v-25'>fn <a href='#method.try_from-25' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#544-546' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CString%3E-1' class='impl'><code class='in-band'>impl HttpTryFrom&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3CString%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/uri/mod.rs.html#728-735' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-27' class="type"><code id='Error.t-27'>type <a href='#associatedtype.Error-27' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUriBytes.html" title="struct actix_http::http::uri::InvalidUriBytes">InvalidUriBytes</a></code></h4><h4 id='method.try_from-26' class="method hidden"><code id='try_from.v-26'>fn <a href='#method.try_from-26' class='fnname'>try_from</a>(t: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/mod.rs.html#732-734' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/name.rs.html#1896-1902' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-28' class="type"><code id='Error.t-28'>type <a href='#associatedtype.Error-28' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderName.html" title="struct actix_http::http::header::InvalidHeaderName">InvalidHeaderName</a></code></h4><h4 id='method.try_from-27' class="method hidden"><code id='try_from.v-27'>fn <a href='#method.try_from-27' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/name.rs.html#1899-1901' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-1' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#514-521' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-29' class="type"><code id='Error.t-29'>type <a href='#associatedtype.Error-29' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderValue.html" title="struct actix_http::http::header::InvalidHeaderValue">InvalidHeaderValue</a></code></h4><h4 id='method.try_from-28' class="method hidden"><code id='try_from.v-28'>fn <a href='#method.try_from-28' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#518-520' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-2' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-2' class='anchor'></a><a class='srclink' href='../../src/http/method.rs.html#362-369' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-30' class="type"><code id='Error.t-30'>type <a href='#associatedtype.Error-30' class="type">Error</a> = <a class="struct" href="../../http/method/struct.InvalidMethod.html" title="struct http::method::InvalidMethod">InvalidMethod</a></code></h4><h4 id='method.try_from-29' class="method hidden"><code id='try_from.v-29'>fn <a href='#method.try_from-29' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/method.rs.html#366-368' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-3' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-3' class='anchor'></a><a class='srclink' href='../../src/http/status.rs.html#268-275' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-31' class="type"><code id='Error.t-31'>type <a href='#associatedtype.Error-31' class="type">Error</a> = <a class="struct" href="../../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><h4 id='method.try_from-30' class="method hidden"><code id='try_from.v-30'>fn <a href='#method.try_from-30' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/status.rs.html#272-274' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-4' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-4' class='anchor'></a><a class='srclink' href='../../src/http/uri/mod.rs.html#710-717' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-32' class="type"><code id='Error.t-32'>type <a href='#associatedtype.Error-32' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-31' class="method hidden"><code id='try_from.v-31'>fn <a href='#method.try_from-31' class='fnname'>try_from</a>(t: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/mod.rs.html#714-716' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-5' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-5' class='anchor'></a><a class='srclink' href='../../src/http/uri/authority.rs.html#465-471' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-33' class="type"><code id='Error.t-33'>type <a href='#associatedtype.Error-33' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-32' class="method hidden"><code id='try_from.v-32'>fn <a href='#method.try_from-32' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/authority.rs.html#468-470' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-6' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-6' class='anchor'></a><a class='srclink' href='../../src/http/uri/path.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-34' class="type"><code id='Error.t-34'>type <a href='#associatedtype.Error-34' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-33' class="method hidden"><code id='try_from.v-33'>fn <a href='#method.try_from-33' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/path.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20str%3E-7' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20str%3E-7' class='anchor'></a><a class='srclink' href='../../src/http/uri/scheme.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-35' class="type"><code id='Error.t-35'>type <a href='#associatedtype.Error-35' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-34' class="method hidden"><code id='try_from.v-34'>fn <a href='#method.try_from-34' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/scheme.rs.html#143-145' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20HeaderName%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20HeaderName%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/name.rs.html#1887-1894' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-36' class="type"><code id='Error.t-36'>type <a href='#associatedtype.Error-36' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-35' class="method hidden"><code id='try_from.v-35'>fn <a href='#method.try_from-35' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/name.rs.html#1891-1893' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20HeaderValue%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20HeaderValue%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#505-512' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-37' class="type"><code id='Error.t-37'>type <a href='#associatedtype.Error-37' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-36' class="method hidden"><code id='try_from.v-36'>fn <a href='#method.try_from-36' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#509-511' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20Method%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20Method%3E' class='anchor'></a><a class='srclink' href='../../src/http/method.rs.html#344-351' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-38' class="type"><code id='Error.t-38'>type <a href='#associatedtype.Error-38' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-37' class="method hidden"><code id='try_from.v-37'>fn <a href='#method.try_from-37' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/method.rs.html#348-350' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20StatusCode%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>&gt; for <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20StatusCode%3E' class='anchor'></a><a class='srclink' href='../../src/http/status.rs.html#250-257' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-39' class="type"><code id='Error.t-39'>type <a href='#associatedtype.Error-39' class="type">Error</a> = Never</code></h4><h4 id='method.try_from-38' class="method hidden"><code id='try_from.v-38'>fn <a href='#method.try_from-38' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/status.rs.html#254-256' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20Uri%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20Uri%3E' class='anchor'></a><a class='srclink' href='../../src/http/uri/mod.rs.html#755-762' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-40' class="type"><code id='Error.t-40'>type <a href='#associatedtype.Error-40' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-39' class="method hidden"><code id='try_from.v-39'>fn <a href='#method.try_from-39' class='fnname'>try_from</a>(src: &amp;'a <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/mod.rs.html#759-761' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20String%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20String%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/name.rs.html#1904-1910' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-41' class="type"><code id='Error.t-41'>type <a href='#associatedtype.Error-41' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderName.html" title="struct actix_http::http::header::InvalidHeaderName">InvalidHeaderName</a></code></h4><h4 id='method.try_from-40' class="method hidden"><code id='try_from.v-40'>fn <a href='#method.try_from-40' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: &amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/name.rs.html#1907-1909' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20String%3E-1' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20String%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#523-529' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-42' class="type"><code id='Error.t-42'>type <a href='#associatedtype.Error-42' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderValue.html" title="struct actix_http::http::header::InvalidHeaderValue">InvalidHeaderValue</a></code></h4><h4 id='method.try_from-41' class="method hidden"><code id='try_from.v-41'>fn <a href='#method.try_from-41' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: &amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#526-528' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20String%3E-2' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20String%3E-2' class='anchor'></a><a class='srclink' href='../../src/http/uri/mod.rs.html#719-726' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-43' class="type"><code id='Error.t-43'>type <a href='#associatedtype.Error-43' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-42' class="method hidden"><code id='try_from.v-42'>fn <a href='#method.try_from-42' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: &amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Uri.html" title="struct actix_http::http::Uri">Uri</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/mod.rs.html#723-725' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E' class='anchor'></a><a class='srclink' href='../../src/http/method.rs.html#353-360' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-44' class="type"><code id='Error.t-44'>type <a href='#associatedtype.Error-44' class="type">Error</a> = <a class="struct" href="../../http/method/struct.InvalidMethod.html" title="struct http::method::InvalidMethod">InvalidMethod</a></code></h4><h4 id='method.try_from-43' class="method hidden"><code id='try_from.v-43'>fn <a href='#method.try_from-43' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a>, &lt;<a class="struct" href="../../actix_http/http/struct.Method.html" title="struct actix_http::http::Method">Method</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/method.rs.html#357-359' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-1' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-1' class='anchor'></a><a class='srclink' href='../../src/http/uri/authority.rs.html#448-463' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-45' class="type"><code id='Error.t-45'>type <a href='#associatedtype.Error-45' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-44' class="method hidden"><code id='try_from.v-44'>fn <a href='#method.try_from-44' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Authority.html" title="struct actix_http::http::uri::Authority">Authority</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/authority.rs.html#451-462' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-2' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-2' class='anchor'></a><a class='srclink' href='../../src/http/header/name.rs.html#1912-1918' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-46' class="type"><code id='Error.t-46'>type <a href='#associatedtype.Error-46' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderName.html" title="struct actix_http::http::header::InvalidHeaderName">InvalidHeaderName</a></code></h4><h4 id='method.try_from-45' class="method hidden"><code id='try_from.v-45'>fn <a href='#method.try_from-45' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/name.rs.html#1915-1917' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-3' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-3' class='anchor'></a><a class='srclink' href='../../src/http/uri/path.rs.html#295-301' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-47' class="type"><code id='Error.t-47'>type <a href='#associatedtype.Error-47' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-46' class="method hidden"><code id='try_from.v-46'>fn <a href='#method.try_from-46' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.PathAndQuery.html" title="struct actix_http::http::uri::PathAndQuery">PathAndQuery</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/path.rs.html#298-300' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-4' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-4' class='anchor'></a><a class='srclink' href='../../src/http/header/value.rs.html#531-538' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-48' class="type"><code id='Error.t-48'>type <a href='#associatedtype.Error-48' class="type">Error</a> = <a class="struct" href="../../actix_http/http/header/struct.InvalidHeaderValue.html" title="struct actix_http::http::header::InvalidHeaderValue">InvalidHeaderValue</a></code></h4><h4 id='method.try_from-47' class="method hidden"><code id='try_from.v-47'>fn <a href='#method.try_from-47' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a>, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderValue.html" title="struct actix_http::http::header::HeaderValue">HeaderValue</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/value.rs.html#535-537' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-5' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-5' class='anchor'></a><a class='srclink' href='../../src/http/status.rs.html#259-266' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-49' class="type"><code id='Error.t-49'>type <a href='#associatedtype.Error-49' class="type">Error</a> = <a class="struct" href="../../http/status/struct.InvalidStatusCode.html" title="struct http::status::InvalidStatusCode">InvalidStatusCode</a></code></h4><h4 id='method.try_from-48' class="method hidden"><code id='try_from.v-48'>fn <a href='#method.try_from-48' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>, &lt;<a class="struct" href="../../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/status.rs.html#263-265' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-6' class='impl'><code class='in-band'>impl&lt;'a&gt; HttpTryFrom&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a></code><a href='#impl-HttpTryFrom%3C%26%27a%20%5Bu8%5D%3E-6' class='anchor'></a><a class='srclink' href='../../src/http/uri/scheme.rs.html#121-138' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-50' class="type"><code id='Error.t-50'>type <a href='#associatedtype.Error-50' class="type">Error</a> = <a class="struct" href="../../actix_http/http/uri/struct.InvalidUri.html" title="struct actix_http::http::uri::InvalidUri">InvalidUri</a></code></h4><h4 id='method.try_from-49' class="method hidden"><code id='try_from.v-49'>fn <a href='#method.try_from-49' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a>, &lt;<a class="struct" href="../../actix_http/http/uri/struct.Scheme.html" title="struct actix_http::http::uri::Scheme">Scheme</a> as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/uri/scheme.rs.html#124-137' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3C%26%27a%20HashMap%3CK%2C%20V%2C%20RandomState%3E%3E' class='impl'><code class='in-band'>impl&lt;'a, K, V, T&gt; HttpTryFrom&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.RandomState.html" title="struct std::collections::hash::map::RandomState">RandomState</a>&gt;&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <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/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>V&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_http/http/header/struct.HeaderName.html" title="struct actix_http::http::header::HeaderName">HeaderName</a>: <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>K&gt;,&nbsp;</span></code><a href='#impl-HttpTryFrom%3C%26%27a%20HashMap%3CK%2C%20V%2C%20RandomState%3E%3E' class='anchor'></a><a class='srclink' href='../../src/http/header/map.rs.html#1795-1812' title='goto source code'>[src]</a></h3><div class='docblock'><p>Try to convert a <code>HashMap</code> into a <code>HeaderMap</code>.</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">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
<span class="kw">use</span> <span class="ident">http</span>::{<span class="ident">HttpTryFrom</span>, <span class="ident">header</span>::<span class="ident">HeaderMap</span>};
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">map</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
<span class="ident">map</span>.<span class="ident">insert</span>(<span class="string">&quot;X-Custom-Header&quot;</span>.<span class="ident">to_string</span>(), <span class="string">&quot;my value&quot;</span>.<span class="ident">to_string</span>());
<span class="kw">let</span> <span class="ident">headers</span>: <span class="ident">HeaderMap</span> <span class="op">=</span> <span class="ident">HttpTryFrom</span>::<span class="ident">try_from</span>(<span class="kw-2">&amp;</span><span class="ident">map</span>).<span class="ident">expect</span>(<span class="string">&quot;valid headers&quot;</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">headers</span>[<span class="string">&quot;X-Custom-Header&quot;</span>], <span class="string">&quot;my value&quot;</span>);</pre></div>
</div><div class='impl-items'><h4 id='associatedtype.Error-51' class="type"><code id='Error.t-51'>type <a href='#associatedtype.Error-51' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-50' class="method hidden"><code id='try_from.v-50'>fn <a href='#method.try_from-50' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;c: &amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.RandomState.html" title="struct std::collections::hash::map::RandomState">RandomState</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt;, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt; as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.RandomState.html" title="struct std::collections::hash::map::RandomState">RandomState</a>&gt;&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/header/map.rs.html#1803-1811' title='goto source code'>[src]</a></h4></div><h3 id='impl-HttpTryFrom%3CHeaderMap%3CT%3E%3E' class='impl'><code class='in-band'>impl&lt;T&gt; HttpTryFrom&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt;&gt; for <a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt;</code><a href='#impl-HttpTryFrom%3CHeaderMap%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../../src/http/convert.rs.html#68-74' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-52' class="type"><code id='Error.t-52'>type <a href='#associatedtype.Error-52' class="type">Error</a> = <a class="struct" href="../../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">Error</a></code></h4><h4 id='method.try_from-51' class="method hidden"><code id='try_from.v-51'>fn <a href='#method.try_from-51' class='fnname'>try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;t: <a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt;, &lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt; as <a class="trait" href="../../actix_http/http/trait.HttpTryFrom.html" title="trait actix_http::http::HttpTryFrom">HttpTryFrom</a>&lt;<a class="struct" href="../../actix_http/http/header/struct.HeaderMap.html" title="struct actix_http::http::header::HeaderMap">HeaderMap</a>&lt;T&gt;&gt;&gt;::<a class="type" href="../../actix_http/http/trait.HttpTryFrom.html#associatedtype.Error" title="type actix_http::http::HttpTryFrom::Error">Error</a>&gt;</code><a class='srclink' href='../../src/http/convert.rs.html#71-73' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../../implementors/http/convert/trait.HttpTryFrom.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_http";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>