Files
mercator_service/actix_web/client/struct.ClientRequest.html

113 lines
48 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 `ClientRequest` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ClientRequest"><title>actix_web::client::ClientRequest - 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 struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../actix_web/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct ClientRequest</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.address">address</a><a href="#method.basic_auth">basic_auth</a><a href="#method.bearer_auth">bearer_auth</a><a href="#method.camel_case">camel_case</a><a href="#method.content_length">content_length</a><a href="#method.content_type">content_type</a><a href="#method.cookie">cookie</a><a href="#method.force_close">force_close</a><a href="#method.freeze">freeze</a><a href="#method.get_method">get_method</a><a href="#method.get_peer_addr">get_peer_addr</a><a href="#method.get_uri">get_uri</a><a href="#method.get_version">get_version</a><a href="#method.header">header</a><a href="#method.headers">headers</a><a href="#method.headers_mut">headers_mut</a><a href="#method.if_some">if_some</a><a href="#method.if_true">if_true</a><a href="#method.method">method</a><a href="#method.no_decompress">no_decompress</a><a href="#method.query">query</a><a href="#method.send">send</a><a href="#method.send_body">send_body</a><a href="#method.send_form">send_form</a><a href="#method.send_json">send_json</a><a href="#method.send_stream">send_stream</a><a href="#method.set">set</a><a href="#method.set_header">set_header</a><a href="#method.set_header_if_none">set_header_if_none</a><a href="#method.timeout">timeout</a><a href="#method.uri">uri</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><p class='location'><a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>client</a></p><script>window.sidebarCurrent = {name: 'ClientRequest', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><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/awc/request.rs.html#57-65' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>client</a>::<wbr><a class="struct" href=''>ClientRequest</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct ClientRequest { /* fields omitted */ }</pre></div><div class='docblock'><p>An HTTP Client request builder</p>
<p>This type can be used to construct an instance of <code>ClientRequest</code> through a
builder-like pattern.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">future</span>::{<span class="ident">Future</span>, <span class="ident">lazy</span>};
<span class="kw">use</span> <span class="ident">actix_rt</span>::<span class="ident">System</span>;
<span class="kw">fn</span> <span class="ident">main</span>() {
<span class="ident">System</span>::<span class="ident">new</span>(<span class="string">&quot;test&quot;</span>).<span class="ident">block_on</span>(<span class="ident">lazy</span>(<span class="op">|</span><span class="op">|</span> {
<span class="ident">awc</span>::<span class="ident">Client</span>::<span class="ident">new</span>()
.<span class="ident">get</span>(<span class="string">&quot;http://www.rust-lang.org&quot;</span>) <span class="comment">// &lt;- Create request builder</span>
.<span class="ident">header</span>(<span class="string">&quot;User-Agent&quot;</span>, <span class="string">&quot;Actix-web&quot;</span>)
.<span class="ident">send</span>() <span class="comment">// &lt;- Send http request</span>
.<span class="ident">map_err</span>(<span class="op">|</span><span class="kw">_</span><span class="op">|</span> ())
.<span class="ident">and_then</span>(<span class="op">|</span><span class="ident">response</span><span class="op">|</span> { <span class="comment">// &lt;- server http response</span>
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;Response: {:?}&quot;</span>, <span class="ident">response</span>);
<span class="prelude-val">Ok</span>(())
})
}));
}</pre></div>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/awc/request.rs.html#67-578' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.uri' class="method"><code id='uri.v'>pub fn <a href='#method.uri' class='fnname'>uri</a>&lt;U&gt;(self, uri: U) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/struct.Uri.html" title="struct actix_web::http::Uri">Uri</a>: <a class="trait" href="../../actix_web/http/trait.HttpTryFrom.html" title="trait actix_web::http::HttpTryFrom">HttpTryFrom</a>&lt;U&gt;,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#88-97' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set HTTP URI of request.</p>
</div><h4 id='method.get_uri' class="method"><code id='get_uri.v'>pub fn <a href='#method.get_uri' class='fnname'>get_uri</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../actix_web/http/struct.Uri.html" title="struct actix_web::http::Uri">Uri</a></code><a class='srclink' href='../../src/awc/request.rs.html#100-102' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get HTTP URI of request.</p>
</div><h4 id='method.address' class="method"><code id='address.v'>pub fn <a href='#method.address' class='fnname'>address</a>(self, addr: <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#108-111' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set socket address of the server.</p>
<p>This address is used for connection. If address is not
provided url's host name get resolved.</p>
</div><h4 id='method.method' class="method"><code id='method.v'>pub fn <a href='#method.method' class='fnname'>method</a>(self, method: <a class="struct" href="../../actix_web/http/struct.Method.html" title="struct actix_web::http::Method">Method</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#115-118' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set HTTP method of this request.</p>
</div><h4 id='method.get_method' class="method"><code id='get_method.v'>pub fn <a href='#method.get_method' class='fnname'>get_method</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../actix_web/http/struct.Method.html" title="struct actix_web::http::Method">Method</a></code><a class='srclink' href='../../src/awc/request.rs.html#121-123' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get HTTP method of this request</p>
</div><h4 id='method.get_version' class="method"><code id='get_version.v'>pub fn <a href='#method.get_version' class='fnname'>get_version</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../actix_web/http/struct.Version.html" title="struct actix_web::http::Version">Version</a></code><a class='srclink' href='../../src/awc/request.rs.html#136-138' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get HTTP version of this request.</p>
</div><h4 id='method.get_peer_addr' class="method"><code id='get_peer_addr.v'>pub fn <a href='#method.get_peer_addr' class='fnname'>get_peer_addr</a>(&amp;self) -&gt; &amp;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>&gt;</code><a class='srclink' href='../../src/awc/request.rs.html#141-143' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get peer address of this request.</p>
</div><h4 id='method.headers' class="method"><code id='headers.v'>pub fn <a href='#method.headers' class='fnname'>headers</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../actix_web/http/struct.HeaderMap.html" title="struct actix_web::http::HeaderMap">HeaderMap</a></code><a class='srclink' href='../../src/awc/request.rs.html#147-149' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns request's headers.</p>
</div><h4 id='method.headers_mut' class="method"><code id='headers_mut.v'>pub fn <a href='#method.headers_mut' class='fnname'>headers_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../../actix_web/http/struct.HeaderMap.html" title="struct actix_web::http::HeaderMap">HeaderMap</a></code><a class='srclink' href='../../src/awc/request.rs.html#153-155' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns request's mutable headers.</p>
</div><h4 id='method.set' class="method"><code id='set.v'>pub fn <a href='#method.set' class='fnname'>set</a>&lt;H&gt;(self, hdr: H) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="../../actix_web/http/header/trait.Header.html" title="trait actix_web::http::header::Header">Header</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#170-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a header.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">fn</span> <span class="ident">main</span>() {
<span class="kw">let</span> <span class="ident">req</span> <span class="op">=</span> <span class="ident">awc</span>::<span class="ident">Client</span>::<span class="ident">new</span>()
.<span class="ident">get</span>(<span class="string">&quot;http://www.rust-lang.org&quot;</span>)
.<span class="ident">set</span>(<span class="ident">awc</span>::<span class="ident">http</span>::<span class="ident">header</span>::<span class="ident">Date</span>::<span class="ident">now</span>())
.<span class="ident">set</span>(<span class="ident">awc</span>::<span class="ident">http</span>::<span class="ident">header</span>::<span class="ident">ContentType</span>(<span class="ident">mime</span>::<span class="ident">TEXT_HTML</span>));
}</pre></div>
</div><h4 id='method.header' class="method"><code id='header.v'>pub fn <a href='#method.header' class='fnname'>header</a>&lt;K, V&gt;(self, key: K, value: V) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../actix_web/http/header/trait.IntoHeaderValue.html" title="trait actix_web::http::header::IntoHeaderValue">IntoHeaderValue</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/struct.HeaderName.html" title="struct actix_web::http::HeaderName">HeaderName</a>: <a class="trait" href="../../actix_web/http/trait.HttpTryFrom.html" title="trait actix_web::http::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#198-211' title='goto source code'>[src]</a></h4><div class='docblock'><p>Append a header.</p>
<p>Header gets appended to existing header.
To override header use <code>set_header()</code> method.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">awc</span>::{<span class="ident">http</span>, <span class="ident">Client</span>};
<span class="kw">fn</span> <span class="ident">main</span>() {
<span class="kw">let</span> <span class="ident">req</span> <span class="op">=</span> <span class="ident">Client</span>::<span class="ident">new</span>()
.<span class="ident">get</span>(<span class="string">&quot;http://www.rust-lang.org&quot;</span>)
.<span class="ident">header</span>(<span class="string">&quot;X-TEST&quot;</span>, <span class="string">&quot;value&quot;</span>)
.<span class="ident">header</span>(<span class="ident">http</span>::<span class="ident">header</span>::<span class="ident">CONTENT_TYPE</span>, <span class="string">&quot;application/json&quot;</span>);
}</pre></div>
</div><h4 id='method.set_header' class="method"><code id='set_header.v'>pub fn <a href='#method.set_header' class='fnname'>set_header</a>&lt;K, V&gt;(self, key: K, value: V) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../actix_web/http/header/trait.IntoHeaderValue.html" title="trait actix_web::http::header::IntoHeaderValue">IntoHeaderValue</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/struct.HeaderName.html" title="struct actix_web::http::HeaderName">HeaderName</a>: <a class="trait" href="../../actix_web/http/trait.HttpTryFrom.html" title="trait actix_web::http::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#214-227' title='goto source code'>[src]</a></h4><div class='docblock'><p>Insert a header, replaces existing header.</p>
</div><h4 id='method.set_header_if_none' class="method"><code id='set_header_if_none.v'>pub fn <a href='#method.set_header_if_none' class='fnname'>set_header_if_none</a>&lt;K, V&gt;(self, key: K, value: V) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../actix_web/http/header/trait.IntoHeaderValue.html" title="trait actix_web::http::header::IntoHeaderValue">IntoHeaderValue</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/struct.HeaderName.html" title="struct actix_web::http::HeaderName">HeaderName</a>: <a class="trait" href="../../actix_web/http/trait.HttpTryFrom.html" title="trait actix_web::http::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#230-247' title='goto source code'>[src]</a></h4><div class='docblock'><p>Insert a header only if it is not yet set.</p>
</div><h4 id='method.camel_case' class="method"><code id='camel_case.v'>pub fn <a href='#method.camel_case' class='fnname'>camel_case</a>(self) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#251-254' title='goto source code'>[src]</a></h4><div class='docblock'><p>Send headers in <code>Camel-Case</code> form.</p>
</div><h4 id='method.force_close' class="method"><code id='force_close.v'>pub fn <a href='#method.force_close' class='fnname'>force_close</a>(self) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#259-262' title='goto source code'>[src]</a></h4><div class='docblock'><p>Force close connection instead of returning it back to connections pool.
This setting affect only http/1 connections.</p>
</div><h4 id='method.content_type' class="method"><code id='content_type.v'>pub fn <a href='#method.content_type' class='fnname'>content_type</a>&lt;V&gt;(self, value: V) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/struct.HeaderValue.html" title="struct actix_web::http::HeaderValue">HeaderValue</a>: <a class="trait" href="../../actix_web/http/trait.HttpTryFrom.html" title="trait actix_web::http::HttpTryFrom">HttpTryFrom</a>&lt;V&gt;,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#266-275' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set request's content type</p>
</div><h4 id='method.content_length' class="method"><code id='content_length.v'>pub fn <a href='#method.content_length' class='fnname'>content_length</a>(self, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#279-283' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set content length</p>
</div><h4 id='method.basic_auth' class="method"><code id='basic_auth.v'>pub fn <a href='#method.basic_auth' class='fnname'>basic_auth</a>&lt;U&gt;(self, username: U, password: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#286-298' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set HTTP basic authorization header</p>
</div><h4 id='method.bearer_auth' class="method"><code id='bearer_auth.v'>pub fn <a href='#method.bearer_auth' class='fnname'>bearer_auth</a>&lt;T&gt;(self, token: T) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#301-306' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set HTTP bearer authentication header</p>
</div><h4 id='method.cookie' class="method"><code id='cookie.v'>pub fn <a href='#method.cookie' class='fnname'>cookie</a>(self, cookie: <a class="struct" href="../../actix_web/http/struct.Cookie.html" title="struct actix_web::http::Cookie">Cookie</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#333-342' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a cookie</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">fn</span> <span class="ident">main</span>() {
<span class="ident">System</span>::<span class="ident">new</span>(<span class="string">&quot;test&quot;</span>).<span class="ident">block_on</span>(<span class="ident">lazy</span>(<span class="op">|</span><span class="op">|</span> {
<span class="ident">awc</span>::<span class="ident">Client</span>::<span class="ident">new</span>().<span class="ident">get</span>(<span class="string">&quot;https://www.rust-lang.org&quot;</span>)
.<span class="ident">cookie</span>(
<span class="ident">awc</span>::<span class="ident">http</span>::<span class="ident">Cookie</span>::<span class="ident">build</span>(<span class="string">&quot;name&quot;</span>, <span class="string">&quot;value&quot;</span>)
.<span class="ident">domain</span>(<span class="string">&quot;www.rust-lang.org&quot;</span>)
.<span class="ident">path</span>(<span class="string">&quot;/&quot;</span>)
.<span class="ident">secure</span>(<span class="bool-val">true</span>)
.<span class="ident">http_only</span>(<span class="bool-val">true</span>)
.<span class="ident">finish</span>(),
)
.<span class="ident">send</span>()
.<span class="ident">map_err</span>(<span class="op">|</span><span class="kw">_</span><span class="op">|</span> ())
.<span class="ident">and_then</span>(<span class="op">|</span><span class="ident">response</span><span class="op">|</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;Response: {:?}&quot;</span>, <span class="ident">response</span>);
<span class="prelude-val">Ok</span>(())
})
}));
}</pre></div>
</div><h4 id='method.no_decompress' class="method"><code id='no_decompress.v'>pub fn <a href='#method.no_decompress' class='fnname'>no_decompress</a>(self) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#345-348' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disable automatic decompress of response's body</p>
</div><h4 id='method.timeout' class="method"><code id='timeout.v'>pub fn <a href='#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#354-357' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set request timeout. Overrides client wide timeout setting.</p>
<p>Request timeout is the total time before a response must be received.
Default value is 5 seconds.</p>
</div><h4 id='method.if_true' class="method"><code id='if_true.v'>pub fn <a href='#method.if_true' class='fnname'>if_true</a>&lt;F&gt;(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, f: F) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#361-370' title='goto source code'>[src]</a></h4><div class='docblock'><p>This method calls provided closure with builder reference if
value is <code>true</code>.</p>
</div><h4 id='method.if_some' class="method"><code id='if_some.v'>pub fn <a href='#method.if_some' class='fnname'>if_some</a>&lt;T, F&gt;(self, value: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;, f: F) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(T, <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a>) -&gt; <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#374-383' title='goto source code'>[src]</a></h4><div class='docblock'><p>This method calls provided closure with builder reference if
value is <code>Some</code>.</p>
</div><h4 id='method.query' class="method"><code id='query.v'>pub fn <a href='#method.query' class='fnname'>query</a>&lt;T&gt;(self, query: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a>, <a class="enum" href="../../serde_urlencoded/ser/enum.Error.html" title="enum serde_urlencoded::ser::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#386-404' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the query part of the request</p>
</div><h4 id='method.freeze' class="method"><code id='freeze.v'>pub fn <a href='#method.freeze' class='fnname'>freeze</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../awc/frozen/struct.FrozenClientRequest.html" title="struct awc::frozen::FrozenClientRequest">FrozenClientRequest</a>, <a class="enum" href="../../actix_http/client/error/enum.FreezeRequestError.html" title="enum actix_http::client::error::FreezeRequestError">FreezeRequestError</a>&gt;</code><a class='srclink' href='../../src/awc/request.rs.html#408-423' title='goto source code'>[src]</a></h4><div class='docblock'><p>Freeze request builder and construct <code>FrozenClientRequest</code>,
which could be used for sending same request multiple times.</p>
</div><h4 id='method.send_body' class="method"><code id='send_body.v'>pub fn <a href='#method.send_body' class='fnname'>send_body</a>&lt;B&gt;(self, body: B) -&gt; <a class="enum" href="../../awc/sender/enum.SendClientRequest.html" title="enum awc::sender::SendClientRequest">SendClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <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="enum" href="../../actix_web/dev/enum.Body.html" title="enum actix_web::dev::Body">Body</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#426-442' title='goto source code'>[src]</a></h4><div class='docblock'><p>Complete request construction and send body.</p>
</div><h4 id='method.send_json' class="method"><code id='send_json.v'>pub fn <a href='#method.send_json' class='fnname'>send_json</a>&lt;T&gt;(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="enum" href="../../awc/sender/enum.SendClientRequest.html" title="enum awc::sender::SendClientRequest">SendClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#445-458' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a JSON body and generate <code>ClientRequest</code></p>
</div><h4 id='method.send_form' class="method"><code id='send_form.v'>pub fn <a href='#method.send_form' class='fnname'>send_form</a>&lt;T&gt;(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="enum" href="../../awc/sender/enum.SendClientRequest.html" title="enum awc::sender::SendClientRequest">SendClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#463-476' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a urlencoded body and generate <code>ClientRequest</code></p>
<p><code>ClientRequestBuilder</code> can not be used after this call.</p>
</div><h4 id='method.send_stream' class="method"><code id='send_stream.v'>pub fn <a href='#method.send_stream' class='fnname'>send_stream</a>&lt;S, E&gt;(self, stream: S) -&gt; <a class="enum" href="../../awc/sender/enum.SendClientRequest.html" title="enum awc::sender::SendClientRequest">SendClientRequest</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <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_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = <a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>, Error = E&gt; + 'static,&nbsp;</span></code><a class='srclink' href='../../src/awc/request.rs.html#479-496' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set an streaming body and generate <code>ClientRequest</code>.</p>
</div><h4 id='method.send' class="method"><code id='send.v'>pub fn <a href='#method.send' class='fnname'>send</a>(self) -&gt; <a class="enum" href="../../awc/sender/enum.SendClientRequest.html" title="enum awc::sender::SendClientRequest">SendClientRequest</a></code><a class='srclink' href='../../src/awc/request.rs.html#499-511' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set an empty body and generate <code>ClientRequest</code>.</p>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Debug' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/awc/request.rs.html#580-593' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code><a class='srclink' href='../../src/awc/request.rs.html#581-592' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../actix_web/client/struct.ClientRequest.html" title="struct actix_web::client::ClientRequest">ClientRequest</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' 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='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl&lt;V, T&gt; <a class="trait" href="../../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a>&lt;V&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -&gt; V</code><a class='srclink' href='../../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_web";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>