1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00
actix-web/actix_web/dev/trait.ServiceFactory.html
2024-05-27 01:16:31 +00:00

135 lines
138 KiB
HTML

<!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="Factory for creating `Service`s."><title>ServiceFactory in actix_web::dev - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_web" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../actix_web/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../actix_web/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_web/index.html">actix_web</a><span class="version">4.6.0</span></h2></div><h2 class="location"><a href="#">ServiceFactory</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Config">Config</a></li><li><a href="#associatedtype.Error">Error</a></li><li><a href="#associatedtype.Future">Future</a></li><li><a href="#associatedtype.InitError">InitError</a></li><li><a href="#associatedtype.Response">Response</a></li><li><a href="#associatedtype.Service">Service</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.new_service">new_service</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor">Acceptor</a></li><li><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor">Acceptor</a></li><li><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor">Acceptor</a></li><li><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor">Acceptor</a></li><li><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor">Acceptor</a></li><li><a href="#impl-ServiceFactory%3CReq%3E-for-Arc%3CS%3E">Arc&lt;S&gt;</a></li><li><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Connector">Connector</a></li><li><a href="#impl-ServiceFactory%3CRequest%3E-for-ExpectHandler">ExpectHandler</a></li><li><a href="#impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H1Service%3CT,+S,+B,+X,+U%3E">H1Service&lt;T, S, B, X, U&gt;</a></li><li><a href="#impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H2Service%3CT,+S,+B%3E">H2Service&lt;T, S, B&gt;</a></li><li><a href="#impl-ServiceFactory%3C(T,+Protocol,+Option%3CSocketAddr%3E)%3E-for-HttpService%3CT,+S,+B,+X,+U%3E">HttpService&lt;T, S, B, X, U&gt;</a></li><li><a href="#impl-ServiceFactory%3CReq%3E-for-Rc%3CS%3E">Rc&lt;S&gt;</a></li><li><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Resolver">Resolver</a></li><li><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-TcpConnector">TcpConnector</a></li><li><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector">TlsConnector</a></li><li><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector">TlsConnector</a></li><li><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector">TlsConnector</a></li><li><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector">TlsConnector</a></li><li><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector">TlsConnector</a></li><li><a href="#impl-ServiceFactory%3C(Request,+Framed%3CT,+Codec%3E)%3E-for-UpgradeHandler">UpgradeHandler</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In actix_web::dev</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">actix_web</a>::<wbr><a href="index.html">dev</a>::<wbr><a class="trait" href="#">ServiceFactory</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait ServiceFactory&lt;Req&gt; {
type <a href="#associatedtype.Response" class="associatedtype">Response</a>;
type <a href="#associatedtype.Error" class="associatedtype">Error</a>;
type <a href="#associatedtype.Config" class="associatedtype">Config</a>;
type <a href="#associatedtype.Service" class="associatedtype">Service</a>: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req, Response = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a>, Error = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>&gt;;
type <a href="#associatedtype.InitError" class="associatedtype">InitError</a>;
type <a href="#associatedtype.Future" class="associatedtype">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;;
// Required method
fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, cfg: Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>) -&gt; Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Factory for creating <code>Service</code>s.</p>
<p>This is useful for cases where new <code>Service</code>s must be produced. One case is a TCP
server listener: a listener accepts new connections, constructs a new <code>Service</code> for each using
the <code>ServiceFactory</code> trait, and uses the new <code>Service</code> to process inbound requests on that new
connection.</p>
<p><code>Config</code> is a service factory configuration type.</p>
<p>Simple factories may be able to use <a href="fn.fn_factory.html" title="fn actix_web::dev::fn_factory"><code>fn_factory</code></a> or [<code>fn_factory_with_config</code>] to
reduce boilerplate.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Response" class="method"><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a></h4></section></summary><div class="docblock"><p>Responses given by the created services.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="method"><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a></h4></section></summary><div class="docblock"><p>Errors produced by the created services.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Config" class="method"><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a></h4></section></summary><div class="docblock"><p>Service factory configuration.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Service" class="method"><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a>: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req, Response = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a>, Error = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>The kind of <code>Service</code> created by this factory.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.InitError" class="method"><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a></h4></section></summary><div class="docblock"><p>Errors potentially raised while building a service.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Future" class="method"><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>The future of the <code>Service</code> instance.g</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.new_service" class="method"><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, cfg: Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>) -&gt; Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></summary><div class="docblock"><p>Create and return a new service asynchronously.</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CRequest%3E-for-ExpectHandler" class="impl"><a class="src rightside" href="../../src/actix_http/h1/expect.rs.html#8">source</a><a href="#impl-ServiceFactory%3CRequest%3E-for-ExpectHandler" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt; for <a class="struct" href="../../actix_http/h1/expect/struct.ExpectHandler.html" title="struct actix_http::h1::expect::ExpectHandler">ExpectHandler</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-1" class="associatedtype trait-impl"><a href="#associatedtype.Response-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a></h4></section><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../http/struct.Error.html" title="struct actix_web::http::Error">Error</a></h4></section><section id="associatedtype.Config-1" class="associatedtype trait-impl"><a href="#associatedtype.Config-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-1" class="associatedtype trait-impl"><a href="#associatedtype.Service-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = <a class="struct" href="../../actix_http/h1/expect/struct.ExpectHandler.html" title="struct actix_http::h1::expect::ExpectHandler">ExpectHandler</a></h4></section><section id="associatedtype.InitError-1" class="associatedtype trait-impl"><a href="#associatedtype.InitError-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="struct" href="../http/struct.Error.html" title="struct actix_web::http::Error">Error</a></h4></section><section id="associatedtype.Future-1" class="associatedtype trait-impl"><a href="#associatedtype.Future-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../../actix_http/h1/expect/struct.ExpectHandler.html" title="struct actix_http::h1::expect::ExpectHandler">ExpectHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;<a class="struct" href="../../actix_http/h1/expect/struct.ExpectHandler.html" title="struct actix_http::h1::expect::ExpectHandler">ExpectHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/expect.rs.html#16">source</a><a href="#method.new_service" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: &lt;<a class="struct" href="../../actix_http/h1/expect/struct.ExpectHandler.html" title="struct actix_http::h1::expect::ExpectHandler">ExpectHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>
) -&gt; &lt;<a class="struct" href="../../actix_http/h1/expect/struct.ExpectHandler.html" title="struct actix_http::h1::expect::ExpectHandler">ExpectHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CIO%3E-for-Acceptor" class="impl"><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor" class="anchor">§</a><h3 class="code-header">impl&lt;IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt; for Acceptor<div class="where">where
IO: ActixStream,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-2" class="associatedtype trait-impl"><a href="#associatedtype.Response-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = TlsStream&lt;IO&gt;</h4></section><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = TlsError&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>&gt;</h4></section><section id="associatedtype.Config-2" class="associatedtype trait-impl"><a href="#associatedtype.Config-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-2" class="associatedtype trait-impl"><a href="#associatedtype.Service-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = AcceptorService</h4></section><section id="associatedtype.InitError-2" class="associatedtype trait-impl"><a href="#associatedtype.InitError-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-2" class="associatedtype trait-impl"><a href="#associatedtype.Future-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-1" class="method trait-impl"><a href="#method.new_service-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CIO%3E-for-Acceptor-1" class="impl"><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor-1" class="anchor">§</a><h3 class="code-header">impl&lt;IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt; for Acceptor<div class="where">where
IO: ActixStream,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-3" class="associatedtype trait-impl"><a href="#associatedtype.Response-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = TlsStream&lt;IO&gt;</h4></section><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = TlsError&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>&gt;</h4></section><section id="associatedtype.Config-3" class="associatedtype trait-impl"><a href="#associatedtype.Config-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-3" class="associatedtype trait-impl"><a href="#associatedtype.Service-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = AcceptorService</h4></section><section id="associatedtype.InitError-3" class="associatedtype trait-impl"><a href="#associatedtype.InitError-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-3" class="associatedtype trait-impl"><a href="#associatedtype.Future-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-2" class="method trait-impl"><a href="#method.new_service-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CIO%3E-for-Acceptor-2" class="impl"><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor-2" class="anchor">§</a><h3 class="code-header">impl&lt;IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt; for Acceptor<div class="where">where
IO: ActixStream,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-4" class="associatedtype trait-impl"><a href="#associatedtype.Response-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = TlsStream&lt;IO&gt;</h4></section><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = TlsError&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>&gt;</h4></section><section id="associatedtype.Config-4" class="associatedtype trait-impl"><a href="#associatedtype.Config-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-4" class="associatedtype trait-impl"><a href="#associatedtype.Service-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = AcceptorService</h4></section><section id="associatedtype.InitError-4" class="associatedtype trait-impl"><a href="#associatedtype.InitError-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-4" class="associatedtype trait-impl"><a href="#associatedtype.Future-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-3" class="method trait-impl"><a href="#method.new_service-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CIO%3E-for-Acceptor-3" class="impl"><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor-3" class="anchor">§</a><h3 class="code-header">impl&lt;IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt; for Acceptor<div class="where">where
IO: ActixStream,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-5" class="associatedtype trait-impl"><a href="#associatedtype.Response-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = TlsStream&lt;IO&gt;</h4></section><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = TlsError&lt;<a class="struct" href="https://docs.rs/openssl/0.10/openssl/ssl/error/struct.Error.html" title="struct openssl::ssl::error::Error">Error</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>&gt;</h4></section><section id="associatedtype.Config-5" class="associatedtype trait-impl"><a href="#associatedtype.Config-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-5" class="associatedtype trait-impl"><a href="#associatedtype.Service-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = AcceptorService</h4></section><section id="associatedtype.InitError-5" class="associatedtype trait-impl"><a href="#associatedtype.InitError-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-5" class="associatedtype trait-impl"><a href="#associatedtype.Future-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-4" class="method trait-impl"><a href="#method.new_service-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CIO%3E-for-Acceptor-4" class="impl"><a href="#impl-ServiceFactory%3CIO%3E-for-Acceptor-4" class="anchor">§</a><h3 class="code-header">impl&lt;IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt; for Acceptor<div class="where">where
IO: ActixStream,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-6" class="associatedtype trait-impl"><a href="#associatedtype.Response-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = TlsStream&lt;IO&gt;</h4></section><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = TlsError&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>&gt;</h4></section><section id="associatedtype.Config-6" class="associatedtype trait-impl"><a href="#associatedtype.Config-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-6" class="associatedtype trait-impl"><a href="#associatedtype.Service-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = AcceptorService</h4></section><section id="associatedtype.InitError-6" class="associatedtype trait-impl"><a href="#associatedtype.InitError-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-6" class="associatedtype trait-impl"><a href="#associatedtype.Future-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-5" class="method trait-impl"><a href="#method.new_service-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; &lt;Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;IO&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Connector" class="impl"><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Connector" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt; for Connector<div class="where">where
R: Host,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-7" class="associatedtype trait-impl"><a href="#associatedtype.Response-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, <a class="struct" href="../rt/net/struct.TcpStream.html" title="struct actix_web::rt::net::TcpStream">TcpStream</a>&gt;</h4></section><section id="associatedtype.Error-7" class="associatedtype trait-impl"><a href="#associatedtype.Error-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = ConnectError</h4></section><section id="associatedtype.Config-7" class="associatedtype trait-impl"><a href="#associatedtype.Config-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-7" class="associatedtype trait-impl"><a href="#associatedtype.Service-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = ConnectorService</h4></section><section id="associatedtype.InitError-7" class="associatedtype trait-impl"><a href="#associatedtype.InitError-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-7" class="associatedtype trait-impl"><a href="#associatedtype.Future-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Connector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Connector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-6" class="method trait-impl"><a href="#method.new_service-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;Connector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Resolver" class="impl"><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Resolver" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt; for Resolver<div class="where">where
R: Host,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-8" class="associatedtype trait-impl"><a href="#associatedtype.Response-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = ConnectInfo&lt;R&gt;</h4></section><section id="associatedtype.Error-8" class="associatedtype trait-impl"><a href="#associatedtype.Error-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = ConnectError</h4></section><section id="associatedtype.Config-8" class="associatedtype trait-impl"><a href="#associatedtype.Config-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-8" class="associatedtype trait-impl"><a href="#associatedtype.Service-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = ResolverService</h4></section><section id="associatedtype.InitError-8" class="associatedtype trait-impl"><a href="#associatedtype.InitError-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-8" class="associatedtype trait-impl"><a href="#associatedtype.Future-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;Resolver as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;Resolver as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-7" class="method trait-impl"><a href="#method.new_service-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;Resolver as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-TcpConnector" class="impl"><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-TcpConnector" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt; for TcpConnector<div class="where">where
R: Host,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-9" class="associatedtype trait-impl"><a href="#associatedtype.Response-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, <a class="struct" href="../rt/net/struct.TcpStream.html" title="struct actix_web::rt::net::TcpStream">TcpStream</a>&gt;</h4></section><section id="associatedtype.Error-9" class="associatedtype trait-impl"><a href="#associatedtype.Error-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = ConnectError</h4></section><section id="associatedtype.Config-9" class="associatedtype trait-impl"><a href="#associatedtype.Config-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-9" class="associatedtype trait-impl"><a href="#associatedtype.Service-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = TcpConnectorService</h4></section><section id="associatedtype.InitError-9" class="associatedtype trait-impl"><a href="#associatedtype.InitError-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-9" class="associatedtype trait-impl"><a href="#associatedtype.Future-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;TcpConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;TcpConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-8" class="method trait-impl"><a href="#method.new_service-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;TcpConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;ConnectInfo&lt;R&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector" class="impl"><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector" class="anchor">§</a><h3 class="code-header">impl&lt;R, IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt; for TlsConnector<div class="where">where
R: Host,
IO: ActixStream + 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-10" class="associatedtype trait-impl"><a href="#associatedtype.Response-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, TlsStream&lt;IO&gt;&gt;</h4></section><section id="associatedtype.Error-10" class="associatedtype trait-impl"><a href="#associatedtype.Error-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section><section id="associatedtype.Config-10" class="associatedtype trait-impl"><a href="#associatedtype.Config-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-10" class="associatedtype trait-impl"><a href="#associatedtype.Service-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = TlsConnectorService</h4></section><section id="associatedtype.InitError-10" class="associatedtype trait-impl"><a href="#associatedtype.InitError-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-10" class="associatedtype trait-impl"><a href="#associatedtype.Future-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-9" class="method trait-impl"><a href="#method.new_service-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-1" class="impl"><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-1" class="anchor">§</a><h3 class="code-header">impl&lt;R, IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt; for TlsConnector<div class="where">where
R: Host,
IO: ActixStream + 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-11" class="associatedtype trait-impl"><a href="#associatedtype.Response-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, SslStream&lt;IO&gt;&gt;</h4></section><section id="associatedtype.Error-11" class="associatedtype trait-impl"><a href="#associatedtype.Error-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section><section id="associatedtype.Config-11" class="associatedtype trait-impl"><a href="#associatedtype.Config-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-11" class="associatedtype trait-impl"><a href="#associatedtype.Service-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = TlsConnectorService</h4></section><section id="associatedtype.InitError-11" class="associatedtype trait-impl"><a href="#associatedtype.InitError-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-11" class="associatedtype trait-impl"><a href="#associatedtype.Future-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-10" class="method trait-impl"><a href="#method.new_service-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-2" class="impl"><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-2" class="anchor">§</a><h3 class="code-header">impl&lt;R, IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt; for TlsConnector<div class="where">where
R: Host,
IO: ActixStream + 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-12" class="associatedtype trait-impl"><a href="#associatedtype.Response-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, TlsStream&lt;IO&gt;&gt;</h4></section><section id="associatedtype.Error-12" class="associatedtype trait-impl"><a href="#associatedtype.Error-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section><section id="associatedtype.Config-12" class="associatedtype trait-impl"><a href="#associatedtype.Config-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-12" class="associatedtype trait-impl"><a href="#associatedtype.Service-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = TlsConnectorService</h4></section><section id="associatedtype.InitError-12" class="associatedtype trait-impl"><a href="#associatedtype.InitError-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-12" class="associatedtype trait-impl"><a href="#associatedtype.Future-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-11" class="method trait-impl"><a href="#method.new_service-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-3" class="impl"><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-3" class="anchor">§</a><h3 class="code-header">impl&lt;R, IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt; for TlsConnector<div class="where">where
R: Host,
IO: ActixStream + 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-13" class="associatedtype trait-impl"><a href="#associatedtype.Response-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, TlsStream&lt;IO&gt;&gt;</h4></section><section id="associatedtype.Error-13" class="associatedtype trait-impl"><a href="#associatedtype.Error-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section><section id="associatedtype.Config-13" class="associatedtype trait-impl"><a href="#associatedtype.Config-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-13" class="associatedtype trait-impl"><a href="#associatedtype.Service-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = TlsConnectorService</h4></section><section id="associatedtype.InitError-13" class="associatedtype trait-impl"><a href="#associatedtype.InitError-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-13" class="associatedtype trait-impl"><a href="#associatedtype.Future-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-12" class="method trait-impl"><a href="#method.new_service-12" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-4" class="impl"><a href="#impl-ServiceFactory%3CConnection%3CR,+IO%3E%3E-for-TlsConnector-4" class="anchor">§</a><h3 class="code-header">impl&lt;R, IO&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt; for TlsConnector<div class="where">where
R: Host,
IO: ActixStream + 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-14" class="associatedtype trait-impl"><a href="#associatedtype.Response-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Connection&lt;R, TlsStream&lt;IO&gt;&gt;</h4></section><section id="associatedtype.Error-14" class="associatedtype trait-impl"><a href="#associatedtype.Error-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section><section id="associatedtype.Config-14" class="associatedtype trait-impl"><a href="#associatedtype.Config-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-14" class="associatedtype trait-impl"><a href="#associatedtype.Service-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = TlsConnectorService</h4></section><section id="associatedtype.InitError-14" class="associatedtype trait-impl"><a href="#associatedtype.InitError-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-14" class="associatedtype trait-impl"><a href="#associatedtype.Future-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;</h4></section><section id="method.new_service-13" class="method trait-impl"><a href="#method.new_service-13" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Connection&lt;R, IO&gt;&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CReq%3E-for-Rc%3CS%3E" class="impl"><a href="#impl-ServiceFactory%3CReq%3E-for-Rc%3CS%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, Req&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;S&gt;<div class="where">where
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-15" class="associatedtype trait-impl"><a href="#associatedtype.Response-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a></h4></section><section id="associatedtype.Error-15" class="associatedtype trait-impl"><a href="#associatedtype.Error-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a></h4></section><section id="associatedtype.Config-15" class="associatedtype trait-impl"><a href="#associatedtype.Config-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a></h4></section><section id="associatedtype.Service-15" class="associatedtype trait-impl"><a href="#associatedtype.Service-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a></h4></section><section id="associatedtype.InitError-15" class="associatedtype trait-impl"><a href="#associatedtype.InitError-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a></h4></section><section id="associatedtype.Future-15" class="associatedtype trait-impl"><a href="#associatedtype.Future-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section><section id="method.new_service-14" class="method trait-impl"><a href="#method.new_service-14" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
cfg: &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>
) -&gt; &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CReq%3E-for-Arc%3CS%3E" class="impl"><a href="#impl-ServiceFactory%3CReq%3E-for-Arc%3CS%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, Req&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;S&gt;<div class="where">where
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-16" class="associatedtype trait-impl"><a href="#associatedtype.Response-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a></h4></section><section id="associatedtype.Error-16" class="associatedtype trait-impl"><a href="#associatedtype.Error-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a></h4></section><section id="associatedtype.Config-16" class="associatedtype trait-impl"><a href="#associatedtype.Config-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a></h4></section><section id="associatedtype.Service-16" class="associatedtype trait-impl"><a href="#associatedtype.Service-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a></h4></section><section id="associatedtype.InitError-16" class="associatedtype trait-impl"><a href="#associatedtype.InitError-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a></h4></section><section id="associatedtype.Future-16" class="associatedtype trait-impl"><a href="#associatedtype.Future-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section><section id="method.new_service-15" class="method trait-impl"><a href="#method.new_service-15" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
cfg: &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>
) -&gt; &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3C(Request,+Framed%3CT,+Codec%3E)%3E-for-UpgradeHandler" class="impl"><a class="src rightside" href="../../src/actix_http/h1/upgrade.rs.html#9">source</a><a href="#impl-ServiceFactory%3C(Request,+Framed%3CT,+Codec%3E)%3E-for-UpgradeHandler" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt; for <a class="struct" href="../../actix_http/h1/upgrade/struct.UpgradeHandler.html" title="struct actix_http::h1::upgrade::UpgradeHandler">UpgradeHandler</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-17" class="associatedtype trait-impl"><a href="#associatedtype.Response-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Error-17" class="associatedtype trait-impl"><a href="#associatedtype.Error-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../http/struct.Error.html" title="struct actix_web::http::Error">Error</a></h4></section><section id="associatedtype.Config-17" class="associatedtype trait-impl"><a href="#associatedtype.Config-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-17" class="associatedtype trait-impl"><a href="#associatedtype.Service-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = <a class="struct" href="../../actix_http/h1/upgrade/struct.UpgradeHandler.html" title="struct actix_http::h1::upgrade::UpgradeHandler">UpgradeHandler</a></h4></section><section id="associatedtype.InitError-17" class="associatedtype trait-impl"><a href="#associatedtype.InitError-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="struct" href="../http/struct.Error.html" title="struct actix_web::http::Error">Error</a></h4></section><section id="associatedtype.Future-17" class="associatedtype trait-impl"><a href="#associatedtype.Future-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../../actix_http/h1/upgrade/struct.UpgradeHandler.html" title="struct actix_http::h1::upgrade::UpgradeHandler">UpgradeHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;<a class="struct" href="../../actix_http/h1/upgrade/struct.UpgradeHandler.html" title="struct actix_http::h1::upgrade::UpgradeHandler">UpgradeHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section><section id="method.new_service-16" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/upgrade.rs.html#17">source</a><a href="#method.new_service-16" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;<a class="struct" href="../../actix_http/h1/upgrade/struct.UpgradeHandler.html" title="struct actix_http::h1::upgrade::UpgradeHandler">UpgradeHandler</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H2Service%3CT,+S,+B%3E" class="impl"><a class="src rightside" href="../../src/actix_http/h2/service.rs.html#347-357">source</a><a href="#impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H2Service%3CT,+S,+B%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S, B&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt; for <a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a>&lt;T, S, B&gt;<div class="where">where
T: AsyncRead + AsyncWrite + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + 'static,
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt; + 'static,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;B&gt;&gt; + 'static,
&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a> as <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a> + 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-18" class="associatedtype trait-impl"><a href="#associatedtype.Response-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Error-18" class="associatedtype trait-impl"><a href="#associatedtype.Error-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="../error/enum.DispatchError.html" title="enum actix_web::error::DispatchError">DispatchError</a></h4></section><section id="associatedtype.Config-18" class="associatedtype trait-impl"><a href="#associatedtype.Config-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-18" class="associatedtype trait-impl"><a href="#associatedtype.Service-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = H2ServiceHandler&lt;T, &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, B&gt;</h4></section><section id="associatedtype.InitError-18" class="associatedtype trait-impl"><a href="#associatedtype.InitError-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a></h4></section><section id="associatedtype.Future-18" class="associatedtype trait-impl"><a href="#associatedtype.Future-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a>&lt;T, S, B&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;<a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a>&lt;T, S, B&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section><section id="method.new_service-17" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h2/service.rs.html#366">source</a><a href="#method.new_service-17" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;<a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a>&lt;T, S, B&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3C(T,+Protocol,+Option%3CSocketAddr%3E)%3E-for-HttpService%3CT,+S,+B,+X,+U%3E" class="impl"><a class="src rightside" href="../../src/actix_http/service.rs.html#751-773">source</a><a href="#impl-ServiceFactory%3C(T,+Protocol,+Option%3CSocketAddr%3E)%3E-for-HttpService%3CT,+S,+B,+X,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S, B, X, U&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="../../actix_http/enum.Protocol.html" title="enum actix_http::Protocol">Protocol</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt; for <a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a>&lt;T, S, B, X, U&gt;<div class="where">where
T: AsyncRead + AsyncWrite + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + 'static,
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt; + 'static,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;B&gt;&gt; + 'static,
&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a> as <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a> + 'static,
X: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Response = <a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;,
&lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt;,
&lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,
U: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;), Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Response = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;,
&lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt;,
&lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-19" class="associatedtype trait-impl"><a href="#associatedtype.Response-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Error-19" class="associatedtype trait-impl"><a href="#associatedtype.Error-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="../error/enum.DispatchError.html" title="enum actix_web::error::DispatchError">DispatchError</a></h4></section><section id="associatedtype.Config-19" class="associatedtype trait-impl"><a href="#associatedtype.Config-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-19" class="associatedtype trait-impl"><a href="#associatedtype.Service-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = HttpServiceHandler&lt;T, &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, B, &lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>&gt;</h4></section><section id="associatedtype.InitError-19" class="associatedtype trait-impl"><a href="#associatedtype.InitError-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-19" class="associatedtype trait-impl"><a href="#associatedtype.Future-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a>&lt;T, S, B, X, U&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="../../actix_http/enum.Protocol.html" title="enum actix_http::Protocol">Protocol</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;<a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a>&lt;T, S, B, X, U&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="../../actix_http/enum.Protocol.html" title="enum actix_http::Protocol">Protocol</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section><section id="method.new_service-18" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/service.rs.html#782">source</a><a href="#method.new_service-18" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;<a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a>&lt;T, S, B, X, U&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="../../actix_http/enum.Protocol.html" title="enum actix_http::Protocol">Protocol</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H1Service%3CT,+S,+B,+X,+U%3E" class="impl"><a class="src rightside" href="../../src/actix_http/h1/service.rs.html#446-466">source</a><a href="#impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H1Service%3CT,+S,+B,+X,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S, B, X, U&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt; for <a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a>&lt;T, S, B, X, U&gt;<div class="where">where
T: AsyncRead + AsyncWrite + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + 'static,
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt;,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_web::dev::ServiceFactory::Response">Response</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;B&gt;&gt;,
&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a>,
X: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Response = <a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;,
&lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt;,
&lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,
U: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;), Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Response = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;,
&lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
&lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_web::dev::ServiceFactory::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a>&lt;<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>&gt;&gt;,
&lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-20" class="associatedtype trait-impl"><a href="#associatedtype.Response-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Error-20" class="associatedtype trait-impl"><a href="#associatedtype.Error-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="../error/enum.DispatchError.html" title="enum actix_web::error::DispatchError">DispatchError</a></h4></section><section id="associatedtype.Config-20" class="associatedtype trait-impl"><a href="#associatedtype.Config-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-20" class="associatedtype trait-impl"><a href="#associatedtype.Service-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = HttpServiceHandler&lt;T, &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, B, &lt;X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed&lt;T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>&gt;</h4></section><section id="associatedtype.InitError-20" class="associatedtype trait-impl"><a href="#associatedtype.InitError-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-20" class="associatedtype trait-impl"><a href="#associatedtype.Future-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a>&lt;T, S, B, X, U&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;<a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a>&lt;T, S, B, X, U&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section><section id="method.new_service-19" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/service.rs.html#475">source</a><a href="#method.new_service-19" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_service" class="fn">new_service</a>(
&amp;self,
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
) -&gt; &lt;<a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a>&lt;T, S, B, X, U&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;)&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CServiceRequest%3E-for-Route" class="impl"><a class="src rightside" href="../../src/actix_web/route.rs.html#70-87">source</a><a href="#impl-ServiceFactory%3CServiceRequest%3E-for-Route" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt; for <a class="struct" href="../struct.Route.html" title="struct actix_web::Route">Route</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-21" class="associatedtype trait-impl"><a href="#associatedtype.Response-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a></h4></section><section id="associatedtype.Error-21" class="associatedtype trait-impl"><a href="#associatedtype.Error-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Config-21" class="associatedtype trait-impl"><a href="#associatedtype.Config-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Service-21" class="associatedtype trait-impl"><a href="#associatedtype.Service-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = RouteService</h4></section><section id="associatedtype.InitError-21" class="associatedtype trait-impl"><a href="#associatedtype.InitError-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-21" class="associatedtype trait-impl"><a href="#associatedtype.Future-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../struct.Route.html" title="struct actix_web::Route">Route</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, &lt;<a class="struct" href="../struct.Route.html" title="struct actix_web::Route">Route</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CReq%3E-for-BoxServiceFactory%3CC,+Req,+Res,+Err,+InitErr%3E" class="impl"><a href="#impl-ServiceFactory%3CReq%3E-for-BoxServiceFactory%3CC,+Req,+Res,+Err,+InitErr%3E" class="anchor">§</a><h3 class="code-header">impl&lt;C, Req, Res, Err, InitErr&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt; for BoxServiceFactory&lt;C, Req, Res, Err, InitErr&gt;<div class="where">where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-22" class="associatedtype trait-impl"><a href="#associatedtype.Response-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Res</h4></section><section id="associatedtype.Error-22" class="associatedtype trait-impl"><a href="#associatedtype.Error-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = Err</h4></section><section id="associatedtype.Config-22" class="associatedtype trait-impl"><a href="#associatedtype.Config-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = C</h4></section><section id="associatedtype.Service-22" class="associatedtype trait-impl"><a href="#associatedtype.Service-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req, Future = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Res, Err&gt;&gt;&gt;&gt;, Response = Res, Error = Err&gt;&gt;</h4></section><section id="associatedtype.InitError-22" class="associatedtype trait-impl"><a href="#associatedtype.InitError-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = InitErr</h4></section><section id="associatedtype.Future-22" class="associatedtype trait-impl"><a href="#associatedtype.Future-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;BoxServiceFactory&lt;C, Req, Res, Err, InitErr&gt; as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, InitErr&gt;&gt;&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ServiceFactory%3CReq%3E-for-ApplyTransform%3CT,+S,+Req%3E" class="impl"><a href="#impl-ServiceFactory%3CReq%3E-for-ApplyTransform%3CT,+S,+Req%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S, Req&gt; <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt; for ApplyTransform&lt;T, S, Req&gt;<div class="where">where
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;,
T: <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req, InitError = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-23" class="associatedtype trait-impl"><a href="#associatedtype.Response-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a></h4></section><section id="associatedtype.Error-23" class="associatedtype trait-impl"><a href="#associatedtype.Error-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a></h4></section><section id="associatedtype.Config-23" class="associatedtype trait-impl"><a href="#associatedtype.Config-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = &lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a></h4></section><section id="associatedtype.Service-23" class="associatedtype trait-impl"><a href="#associatedtype.Service-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a></h4></section><section id="associatedtype.InitError-23" class="associatedtype trait-impl"><a href="#associatedtype.InitError-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;&lt;S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a>&lt;Req&gt;&gt;::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></h4></section><section id="associatedtype.Future-23" class="associatedtype trait-impl"><a href="#associatedtype.Future-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = ApplyTransformFuture&lt;T, S, Req&gt;</h4></section></div></details></div><script src="../../trait.impl/actix_service/trait.ServiceFactory.js" data-ignore-extern-crates="alloc,actix_http,actix_tls,actix_service" async></script></section></div></main></body></html>