Files
mercator_service/actix_http/struct.Response.html

62 lines
76 KiB
HTML
Raw Permalink 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 `Response` struct in crate `actix_http`."><meta name="keywords" content="rust, rustlang, rust-lang, Response"><title>actix_http::Response - 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_http/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Response</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.Accepted">Accepted</a><a href="#method.AlreadyReported">AlreadyReported</a><a href="#method.BadGateway">BadGateway</a><a href="#method.BadRequest">BadRequest</a><a href="#method.Conflict">Conflict</a><a href="#method.Created">Created</a><a href="#method.ExpectationFailed">ExpectationFailed</a><a href="#method.Forbidden">Forbidden</a><a href="#method.Found">Found</a><a href="#method.GatewayTimeout">GatewayTimeout</a><a href="#method.Gone">Gone</a><a href="#method.InsufficientStorage">InsufficientStorage</a><a href="#method.InternalServerError">InternalServerError</a><a href="#method.LengthRequired">LengthRequired</a><a href="#method.LoopDetected">LoopDetected</a><a href="#method.MethodNotAllowed">MethodNotAllowed</a><a href="#method.MovedPermanently">MovedPermanently</a><a href="#method.MultiStatus">MultiStatus</a><a href="#method.MultipleChoices">MultipleChoices</a><a href="#method.NoContent">NoContent</a><a href="#method.NonAuthoritativeInformation">NonAuthoritativeInformation</a><a href="#method.NotAcceptable">NotAcceptable</a><a href="#method.NotFound">NotFound</a><a href="#method.NotImplemented">NotImplemented</a><a href="#method.NotModified">NotModified</a><a href="#method.Ok">Ok</a><a href="#method.PartialContent">PartialContent</a><a href="#method.PayloadTooLarge">PayloadTooLarge</a><a href="#method.PaymentRequired">PaymentRequired</a><a href="#method.PermanentRedirect">PermanentRedirect</a><a href="#method.PreconditionFailed">PreconditionFailed</a><a href="#method.PreconditionRequired">PreconditionRequired</a><a href="#method.ProxyAuthenticationRequired">ProxyAuthenticationRequired</a><a href="#method.RangeNotSatisfiable">RangeNotSatisfiable</a><a href="#method.RequestTimeout">RequestTimeout</a><a href="#method.ResetContent">ResetContent</a><a href="#method.SeeOther">SeeOther</a><a href="#method.ServiceUnavailable">ServiceUnavailable</a><a href="#method.TemporaryRedirect">TemporaryRedirect</a><a href="#method.TooManyRequests">TooManyRequests</a><a href="#method.Unauthorized">Unauthorized</a><a href="#method.UnprocessableEntity">UnprocessableEntity</a><a href="#method.UnsupportedMediaType">UnsupportedMediaType</a><a href="#method.UriTooLong">UriTooLong</a><a href="#method.UseProxy">UseProxy</a><a href="#method.VariantAlsoNegotiates">VariantAlsoNegotiates</a><a href="#method.VersionNotSupported">VersionNotSupported</a><a href="#method.add_cookie">add_cookie</a><a href="#method.body">body</a><a href="#method.build">build</a><a href="#method.build_from">build_from</a><a href="#method.cookies">cookies</a><a href="#method.del_cookie">del_cookie</a><a href="#method.drop_body">drop_body</a><a href="#method.error">error</a><a href="#method.extensions">extensions</a><a href="#method.extensions_mut">extensions_mut</a><a href="#method.from_error">from_error</a><a href="#method.head">head</a><a href="#method.head_mut">head_mut</a><a href="#method.headers">headers</a><a href="#method.headers_mut">headers_mut</a><a href="#method.into_body">into_body</a><a href="#method.into_parts">into_parts</a><a href="#method.keep_alive">keep_alive</a><a href="#method.map_body">map_body</a><a href="#method.new">new</a><a href="#method.set_body">set_body</a><a href="#method.status">status</a><a href="#method.status_mut">status_mut</a><a href="#method.take_body">take_body</a><a href="#method.upgrade">upgrade</a><a href="#method.with_body">with_body</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-From%3C%26%27a%20String%3E">From&lt;&amp;&#39;a String&gt;</a><a href="#impl-From%3C%26%27static%20%5Bu8%5D%3E">From&lt;&amp;&#39;static [u8]&gt;</a><a href="#impl-From%3C%26%27static%20str%3E">From&lt;&amp;&#39;static str&gt;</a><a href="#impl-From%3CBytes%3E">From&lt;Bytes&gt;</a><a href="#impl-From%3CBytesMut%3E">From&lt;BytesMut&gt;</a><a href="#impl-From%3CError%3E">From&lt;Error&gt;</a><a href="#impl-From%3CResponse%3CB%3E%3E">From&lt;Response&lt;B&gt;&gt;</a><a href="#impl-From%3CResponse%3CBody%3E%3E">From&lt;Response&lt;Body&gt;&gt;</a><a href="#impl-From%3CResponseBuilder%3E">From&lt;ResponseBuilder&gt;</a><a href="#impl-From%3CResult%3CI%2C%20E%3E%3E">From&lt;Result&lt;I, E&gt;&gt;</a><a href="#impl-From%3CString%3E">From&lt;String&gt;</a><a href="#impl-IntoFuture">IntoFuture</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-IntoFuture">IntoFuture</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_http</a></p><script>window.sidebarCurrent = {name: 'Response', 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/actix_http/response.rs.html#22-26' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_http</a>::<wbr><a class="struct" href=''>Response</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Response&lt;B&nbsp;=&nbsp;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt; { /* fields omitted */ }</pre></div><div class='docblock'><p>An HTTP Response</p>
</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_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_http/httpcodes.rs.html#16-74' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.Ok' class="method"><code id='Ok.v'>pub fn <a href='#method.Ok' class='fnname'>Ok</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Created' class="method"><code id='Created.v'>pub fn <a href='#method.Created' class='fnname'>Created</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Accepted' class="method"><code id='Accepted.v'>pub fn <a href='#method.Accepted' class='fnname'>Accepted</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.NonAuthoritativeInformation' class="method"><code id='NonAuthoritativeInformation.v'>pub fn <a href='#method.NonAuthoritativeInformation' class='fnname'>NonAuthoritativeInformation</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.NoContent' class="method"><code id='NoContent.v'>pub fn <a href='#method.NoContent' class='fnname'>NoContent</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.ResetContent' class="method"><code id='ResetContent.v'>pub fn <a href='#method.ResetContent' class='fnname'>ResetContent</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.PartialContent' class="method"><code id='PartialContent.v'>pub fn <a href='#method.PartialContent' class='fnname'>PartialContent</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.MultiStatus' class="method"><code id='MultiStatus.v'>pub fn <a href='#method.MultiStatus' class='fnname'>MultiStatus</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.AlreadyReported' class="method"><code id='AlreadyReported.v'>pub fn <a href='#method.AlreadyReported' class='fnname'>AlreadyReported</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.MultipleChoices' class="method"><code id='MultipleChoices.v'>pub fn <a href='#method.MultipleChoices' class='fnname'>MultipleChoices</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.MovedPermanently' class="method"><code id='MovedPermanently.v'>pub fn <a href='#method.MovedPermanently' class='fnname'>MovedPermanently</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Found' class="method"><code id='Found.v'>pub fn <a href='#method.Found' class='fnname'>Found</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.SeeOther' class="method"><code id='SeeOther.v'>pub fn <a href='#method.SeeOther' class='fnname'>SeeOther</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.NotModified' class="method"><code id='NotModified.v'>pub fn <a href='#method.NotModified' class='fnname'>NotModified</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.UseProxy' class="method"><code id='UseProxy.v'>pub fn <a href='#method.UseProxy' class='fnname'>UseProxy</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.TemporaryRedirect' class="method"><code id='TemporaryRedirect.v'>pub fn <a href='#method.TemporaryRedirect' class='fnname'>TemporaryRedirect</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.PermanentRedirect' class="method"><code id='PermanentRedirect.v'>pub fn <a href='#method.PermanentRedirect' class='fnname'>PermanentRedirect</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.BadRequest' class="method"><code id='BadRequest.v'>pub fn <a href='#method.BadRequest' class='fnname'>BadRequest</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.NotFound' class="method"><code id='NotFound.v'>pub fn <a href='#method.NotFound' class='fnname'>NotFound</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Unauthorized' class="method"><code id='Unauthorized.v'>pub fn <a href='#method.Unauthorized' class='fnname'>Unauthorized</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.PaymentRequired' class="method"><code id='PaymentRequired.v'>pub fn <a href='#method.PaymentRequired' class='fnname'>PaymentRequired</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Forbidden' class="method"><code id='Forbidden.v'>pub fn <a href='#method.Forbidden' class='fnname'>Forbidden</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.MethodNotAllowed' class="method"><code id='MethodNotAllowed.v'>pub fn <a href='#method.MethodNotAllowed' class='fnname'>MethodNotAllowed</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.NotAcceptable' class="method"><code id='NotAcceptable.v'>pub fn <a href='#method.NotAcceptable' class='fnname'>NotAcceptable</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.ProxyAuthenticationRequired' class="method"><code id='ProxyAuthenticationRequired.v'>pub fn <a href='#method.ProxyAuthenticationRequired' class='fnname'>ProxyAuthenticationRequired</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.RequestTimeout' class="method"><code id='RequestTimeout.v'>pub fn <a href='#method.RequestTimeout' class='fnname'>RequestTimeout</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Conflict' class="method"><code id='Conflict.v'>pub fn <a href='#method.Conflict' class='fnname'>Conflict</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.Gone' class="method"><code id='Gone.v'>pub fn <a href='#method.Gone' class='fnname'>Gone</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.LengthRequired' class="method"><code id='LengthRequired.v'>pub fn <a href='#method.LengthRequired' class='fnname'>LengthRequired</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.PreconditionFailed' class="method"><code id='PreconditionFailed.v'>pub fn <a href='#method.PreconditionFailed' class='fnname'>PreconditionFailed</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.PreconditionRequired' class="method"><code id='PreconditionRequired.v'>pub fn <a href='#method.PreconditionRequired' class='fnname'>PreconditionRequired</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.PayloadTooLarge' class="method"><code id='PayloadTooLarge.v'>pub fn <a href='#method.PayloadTooLarge' class='fnname'>PayloadTooLarge</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.UriTooLong' class="method"><code id='UriTooLong.v'>pub fn <a href='#method.UriTooLong' class='fnname'>UriTooLong</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.UnsupportedMediaType' class="method"><code id='UnsupportedMediaType.v'>pub fn <a href='#method.UnsupportedMediaType' class='fnname'>UnsupportedMediaType</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.RangeNotSatisfiable' class="method"><code id='RangeNotSatisfiable.v'>pub fn <a href='#method.RangeNotSatisfiable' class='fnname'>RangeNotSatisfiable</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.ExpectationFailed' class="method"><code id='ExpectationFailed.v'>pub fn <a href='#method.ExpectationFailed' class='fnname'>ExpectationFailed</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.UnprocessableEntity' class="method"><code id='UnprocessableEntity.v'>pub fn <a href='#method.UnprocessableEntity' class='fnname'>UnprocessableEntity</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.TooManyRequests' class="method"><code id='TooManyRequests.v'>pub fn <a href='#method.TooManyRequests' class='fnname'>TooManyRequests</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.InternalServerError' class="method"><code id='InternalServerError.v'>pub fn <a href='#method.InternalServerError' class='fnname'>InternalServerError</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.NotImplemented' class="method"><code id='NotImplemented.v'>pub fn <a href='#method.NotImplemented' class='fnname'>NotImplemented</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.BadGateway' class="method"><code id='BadGateway.v'>pub fn <a href='#method.BadGateway' class='fnname'>BadGateway</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.ServiceUnavailable' class="method"><code id='ServiceUnavailable.v'>pub fn <a href='#method.ServiceUnavailable' class='fnname'>ServiceUnavailable</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.GatewayTimeout' class="method"><code id='GatewayTimeout.v'>pub fn <a href='#method.GatewayTimeout' class='fnname'>GatewayTimeout</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.VersionNotSupported' class="method"><code id='VersionNotSupported.v'>pub fn <a href='#method.VersionNotSupported' class='fnname'>VersionNotSupported</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.VariantAlsoNegotiates' class="method"><code id='VariantAlsoNegotiates.v'>pub fn <a href='#method.VariantAlsoNegotiates' class='fnname'>VariantAlsoNegotiates</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.InsufficientStorage' class="method"><code id='InsufficientStorage.v'>pub fn <a href='#method.InsufficientStorage' class='fnname'>InsufficientStorage</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4><h4 id='method.LoopDetected' class="method"><code id='LoopDetected.v'>pub fn <a href='#method.LoopDetected' class='fnname'>LoopDetected</a>() -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/httpcodes.rs.html#10-12' title='goto source code'>[src]</a></h4></div><h3 id='impl-1' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt;</code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#28-74' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.build' class="method"><code id='build.v'>pub fn <a href='#method.build' class='fnname'>build</a>(status: <a class="struct" href="../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>) -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/response.rs.html#31-33' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create http response builder with specific status.</p>
</div><h4 id='method.build_from' class="method"><code id='build_from.v'>pub fn <a href='#method.build_from' class='fnname'>build_from</a>&lt;T:&nbsp;<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/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a>&gt;&gt;(source: T) -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/response.rs.html#37-39' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create http response builder</p>
</div><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(status: <a class="struct" href="../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a class='srclink' href='../src/actix_http/response.rs.html#43-49' title='goto source code'>[src]</a></h4><div class='docblock'><p>Constructs a response</p>
</div><h4 id='method.from_error' class="method"><code id='from_error.v'>pub fn <a href='#method.from_error' class='fnname'>from_error</a>(error: <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a class='srclink' href='../src/actix_http/response.rs.html#53-60' title='goto source code'>[src]</a></h4><div class='docblock'><p>Constructs an error response</p>
</div><h4 id='method.into_body' class="method"><code id='into_body.v'>pub fn <a href='#method.into_body' class='fnname'>into_body</a>&lt;B&gt;(self) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#63-73' title='goto source code'>[src]</a></h4><div class='docblock'><p>Convert response to response with body</p>
</div></div><h3 id='impl-2' class='impl'><code class='in-band'>impl&lt;B&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#76-263' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.with_body' class="method"><code id='with_body.v'>pub fn <a href='#method.with_body' class='fnname'>with_body</a>(status: <a class="struct" href="../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a>, body: B) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#79-85' title='goto source code'>[src]</a></h4><div class='docblock'><p>Constructs a response with body</p>
</div><h4 id='method.head' class="method"><code id='head.v'>pub fn <a href='#method.head' class='fnname'>head</a>(&amp;self) -&gt; &amp;<a class="struct" href="../actix_http/struct.ResponseHead.html" title="struct actix_http::ResponseHead">ResponseHead</a></code><a class='srclink' href='../src/actix_http/response.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='docblock'><p>Http message part of the response</p>
</div><h4 id='method.head_mut' class="method"><code id='head_mut.v'>pub fn <a href='#method.head_mut' class='fnname'>head_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../actix_http/struct.ResponseHead.html" title="struct actix_http::ResponseHead">ResponseHead</a></code><a class='srclink' href='../src/actix_http/response.rs.html#95-97' title='goto source code'>[src]</a></h4><div class='docblock'><p>Mutable reference to a http message part of the response</p>
</div><h4 id='method.error' class="method"><code id='error.v'>pub fn <a href='#method.error' class='fnname'>error</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#101-103' title='goto source code'>[src]</a></h4><div class='docblock'><p>The source <code>error</code> for this response</p>
</div><h4 id='method.status' class="method"><code id='status.v'>pub fn <a href='#method.status' class='fnname'>status</a>(&amp;self) -&gt; <a class="struct" href="../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a class='srclink' href='../src/actix_http/response.rs.html#107-109' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get the response status code</p>
</div><h4 id='method.status_mut' class="method"><code id='status_mut.v'>pub fn <a href='#method.status_mut' class='fnname'>status_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../actix_http/http/struct.StatusCode.html" title="struct actix_http::http::StatusCode">StatusCode</a></code><a class='srclink' href='../src/actix_http/response.rs.html#113-115' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set the <code>StatusCode</code> for this response</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_http/http/struct.HeaderMap.html" title="struct actix_http::http::HeaderMap">HeaderMap</a></code><a class='srclink' href='../src/actix_http/response.rs.html#119-121' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get the headers from the response</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_http/http/struct.HeaderMap.html" title="struct actix_http::http::HeaderMap">HeaderMap</a></code><a class='srclink' href='../src/actix_http/response.rs.html#125-127' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get a mutable reference to the headers</p>
</div><h4 id='method.cookies' class="method"><code id='cookies.v'>pub fn <a href='#method.cookies' class='fnname'>cookies</a>(&amp;self) -&gt; CookieIter</code><a class='srclink' href='../src/actix_http/response.rs.html#131-135' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get an iterator for the cookies set by this response</p>
</div><h4 id='method.add_cookie' class="method"><code id='add_cookie.v'>pub fn <a href='#method.add_cookie' class='fnname'>add_cookie</a>(&amp;mut self, cookie: &amp;<a class="struct" href="../actix_http/cookie/struct.Cookie.html" title="struct actix_http::cookie::Cookie">Cookie</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="../actix_http/http/struct.Error.html" title="struct actix_http::http::Error">HttpError</a>&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#139-146' title='goto source code'>[src]</a></h4><div class='docblock'><p>Add a cookie to this response</p>
</div><h4 id='method.del_cookie' class="method"><code id='del_cookie.v'>pub fn <a href='#method.del_cookie' class='fnname'>del_cookie</a>(&amp;mut self, name: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/actix_http/response.rs.html#151-172' title='goto source code'>[src]</a></h4><div class='docblock'><p>Remove all cookies with the given name from this response. Returns
the number of cookies removed.</p>
</div><h4 id='method.upgrade' class="method"><code id='upgrade.v'>pub fn <a href='#method.upgrade' class='fnname'>upgrade</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/actix_http/response.rs.html#176-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Connection upgrade status</p>
</div><h4 id='method.keep_alive' class="method"><code id='keep_alive.v'>pub fn <a href='#method.keep_alive' class='fnname'>keep_alive</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/actix_http/response.rs.html#181-183' title='goto source code'>[src]</a></h4><div class='docblock'><p>Keep-alive status for this connection</p>
</div><h4 id='method.extensions' class="method"><code id='extensions.v'>pub fn <a href='#method.extensions' class='fnname'>extensions</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.Ref.html" title="struct core::cell::Ref">Ref</a>&lt;<a class="struct" href="../actix_http/struct.Extensions.html" title="struct actix_http::Extensions">Extensions</a>&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#187-189' title='goto source code'>[src]</a></h4><div class='docblock'><p>Responses extensions</p>
</div><h4 id='method.extensions_mut' class="method"><code id='extensions_mut.v'>pub fn <a href='#method.extensions_mut' class='fnname'>extensions_mut</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.RefMut.html" title="struct core::cell::RefMut">RefMut</a>&lt;<a class="struct" href="../actix_http/struct.Extensions.html" title="struct actix_http::Extensions">Extensions</a>&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#193-195' title='goto source code'>[src]</a></h4><div class='docblock'><p>Mutable reference to a the response's extensions</p>
</div><h4 id='method.body' class="method"><code id='body.v'>pub fn <a href='#method.body' class='fnname'>body</a>(&amp;self) -&gt; &amp;<a class="enum" href="../actix_http/body/enum.ResponseBody.html" title="enum actix_http::body::ResponseBody">ResponseBody</a>&lt;B&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#199-201' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get body of this response</p>
</div><h4 id='method.set_body' class="method"><code id='set_body.v'>pub fn <a href='#method.set_body' class='fnname'>set_body</a>&lt;B2&gt;(self, body: B2) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B2&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#204-210' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a body</p>
</div><h4 id='method.into_parts' class="method"><code id='into_parts.v'>pub fn <a href='#method.into_parts' class='fnname'>into_parts</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="enum" href="../actix_http/body/enum.ResponseBody.html" title="enum actix_http::body::ResponseBody">ResponseBody</a>&lt;B&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/actix_http/response.rs.html#213-222' title='goto source code'>[src]</a></h4><div class='docblock'><p>Split response and body</p>
</div><h4 id='method.drop_body' class="method"><code id='drop_body.v'>pub fn <a href='#method.drop_body' class='fnname'>drop_body</a>(self) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#225-231' title='goto source code'>[src]</a></h4><div class='docblock'><p>Drop request's body</p>
</div><h4 id='method.map_body' class="method"><code id='map_body.v'>pub fn <a href='#method.map_body' class='fnname'>map_body</a>&lt;F, B2&gt;(self, f: F) -&gt; <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B2&gt; <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>(&amp;mut <a class="struct" href="../actix_http/struct.ResponseHead.html" title="struct actix_http::ResponseHead">ResponseHead</a>, <a class="enum" href="../actix_http/body/enum.ResponseBody.html" title="enum actix_http::body::ResponseBody">ResponseBody</a>&lt;B&gt;) -&gt; <a class="enum" href="../actix_http/body/enum.ResponseBody.html" title="enum actix_http::body::ResponseBody">ResponseBody</a>&lt;B2&gt;,&nbsp;</span></code><a class='srclink' href='../src/actix_http/response.rs.html#246-257' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a body and return previous body value</p>
</div><h4 id='method.take_body' class="method"><code id='take_body.v'>pub fn <a href='#method.take_body' class='fnname'>take_body</a>(&amp;mut self) -&gt; <a class="enum" href="../actix_http/body/enum.ResponseBody.html" title="enum actix_http::body::ResponseBody">ResponseBody</a>&lt;B&gt;</code><a class='srclink' href='../src/actix_http/response.rs.html#260-262' title='goto source code'>[src]</a></h4><div class='docblock'><p>Extract response body</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&lt;B:&nbsp;<a class="trait" href="../actix_http/body/trait.MessageBody.html" title="trait actix_http::body::MessageBody">MessageBody</a>&gt; <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_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#265-281' 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="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_http/response.rs.html#266-280' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-From%3C%26%27a%20String%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="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/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3C%26%27a%20String%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#829-835' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-6' class="method hidden"><code id='from.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: &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; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#830-834' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3C%26%27static%20%5Bu8%5D%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'static [</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/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3C%26%27static%20%5Bu8%5D%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#813-819' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method hidden"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'static [</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; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#814-818' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3C%26%27static%20str%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3C%26%27static%20str%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#805-811' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#806-810' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CBytes%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&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/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3CBytes%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#837-843' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-7' class="method hidden"><code id='from.v-7'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>) -&gt; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#838-842' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CBytesMut%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a>&gt; for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3CBytesMut%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#845-851' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-8' class="method hidden"><code id='from.v-8'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a>) -&gt; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#846-850' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CError%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>&gt; for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3CError%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/error.rs.html#144-148' title='goto source code'>[src]</a></h3><div class='docblock'><p>Convert <code>Error</code> to a <code>Response</code> instance</p>
</div><div class='impl-items'><h4 id='method.from-9' class="method hidden"><code id='from.v-9'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>) -&gt; Self</code><a class='srclink' href='../src/actix_http/error.rs.html#145-147' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CResponse%3CB%3E%3E' class='impl'><code class='in-band'>impl&lt;B&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;&gt; for <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a href='#impl-From%3CResponse%3CB%3E%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#703-723' title='goto source code'>[src]</a></h3><div class='docblock'><p>Convert <code>Response</code> to a <code>ResponseBuilder</code>. Body get dropped.</p>
</div><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>(res: <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;) -&gt; <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a></code><a class='srclink' href='../src/actix_http/response.rs.html#704-722' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CResponse%3CBody%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt;&gt; for <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code><a href='#impl-From%3CResponse%3CBody%3E%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/error.rs.html#560-564' title='goto source code'>[src]</a></h3><div class='docblock'><p>Convert Response to a Error</p>
</div><div class='impl-items'><h4 id='method.from-10' class="method hidden"><code id='from.v-10'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(res: <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>) -&gt; <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code><a class='srclink' href='../src/actix_http/error.rs.html#561-563' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CResponseBuilder%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a>&gt; for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3CResponseBuilder%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#799-803' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(builder: <a class="struct" href="../actix_http/struct.ResponseBuilder.html" title="struct actix_http::ResponseBuilder">ResponseBuilder</a>) -&gt; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#800-802' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CResult%3CI%2C%20E%3E%3E' class='impl'><code class='in-band'>impl&lt;I:&nbsp;<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/struct.Response.html" title="struct actix_http::Response">Response</a>&gt;, E:&nbsp;<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/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>&gt;&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;I, E&gt;&gt; for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3CResult%3CI%2C%20E%3E%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#790-797' title='goto source code'>[src]</a></h3><div class='docblock'><p>Helper converters</p>
</div><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(res: <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;I, E&gt;) -&gt; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#791-796' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</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; for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-From%3CString%3E' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#821-827' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; Self</code><a class='srclink' href='../src/actix_http/response.rs.html#822-826' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-IntoFuture' class='impl'><code class='in-band'>impl <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code><a href='#impl-IntoFuture' class='anchor'></a><a class='srclink' href='../src/actix_http/response.rs.html#283-291' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><code id='Item.t'>type <a href='../futures/future/trait.IntoFuture.html#associatedtype.Item' class="type">Item</a> = <a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a></code></h4><div class='docblock'><p>The item that the future may resolve with.</p>
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../futures/future/trait.IntoFuture.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code></h4><div class='docblock'><p>The error that the future may resolve with.</p>
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../futures/future/trait.IntoFuture.html#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a>&lt;<a class="struct" href="../actix_http/struct.Response.html" title="struct actix_http::Response">Response</a>, <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>&gt;</code></h4><div class='docblock'><p>The future that this type can be converted into.</p>
</div><h4 id='method.into_future' class="method hidden"><code id='into_future.v'>fn <a href='../futures/future/trait.IntoFuture.html#tymethod.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code><a class='srclink' href='../src/actix_http/response.rs.html#288-290' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Consumes this object and produces a future.</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&lt;B&nbsp;=&nbsp;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt; !<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_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</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&lt;B&nbsp;=&nbsp;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt; !<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_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</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&lt;B&nbsp;=&nbsp;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt; !<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_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</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&lt;B&gt; <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_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></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&lt;B&nbsp;=&nbsp;<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>&gt; !<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_http/struct.Response.html" title="struct actix_http::Response">Response</a>&lt;B&gt;</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-11' class="method hidden"><code id='from.v-11'>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-IntoFuture-1' class='impl'><code class='in-band'>impl&lt;F&gt; <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for F <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>,&nbsp;</span></code><a href='#impl-IntoFuture-1' class='anchor'></a><a class='srclink' href='../src/futures/future/mod.rs.html#1052-1060' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Future-1' class="type"><code id='Future.t-1'>type <a href='../futures/future/trait.IntoFuture.html#associatedtype.Future' class="type">Future</a> = F</code></h4><div class='docblock'><p>The future that this type can be converted into.</p>
</div><h4 id='associatedtype.Item-1' class="type"><code id='Item.t-1'>type <a href='../futures/future/trait.IntoFuture.html#associatedtype.Item' class="type">Item</a> = &lt;F as <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="type" href="../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a></code></h4><div class='docblock'><p>The item that the future may resolve with.</p>
</div><h4 id='associatedtype.Error-3' class="type"><code id='Error.t-3'>type <a href='../futures/future/trait.IntoFuture.html#associatedtype.Error' class="type">Error</a> = &lt;F as <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="type" href="../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a></code></h4><div class='docblock'><p>The error that the future may resolve with.</p>
</div><h4 id='method.into_future-1' class="method hidden"><code id='into_future.v-1'>fn <a href='../futures/future/trait.IntoFuture.html#tymethod.into_future' class='fnname'>into_future</a>(self) -&gt; F</code><a class='srclink' href='../src/futures/future/mod.rs.html#1057-1059' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Consumes this object and produces a future.</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-1' class="type"><code id='Error.t-1'>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-2' class="type"><code id='Error.t-2'>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_http";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>