mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
135 lines
138 KiB
HTML
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<S></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<T, S, B, X, U></a></li><li><a href="#impl-ServiceFactory%3C(T,+Option%3CSocketAddr%3E)%3E-for-H2Service%3CT,+S,+B%3E">H2Service<T, S, B></a></li><li><a href="#impl-ServiceFactory%3C(T,+Protocol,+Option%3CSocketAddr%3E)%3E-for-HttpService%3CT,+S,+B,+X,+U%3E">HttpService<T, S, B, X, U></a></li><li><a href="#impl-ServiceFactory%3CReq%3E-for-Rc%3CS%3E">Rc<S></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>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait ServiceFactory<Req> {
|
|
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><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>>;
|
|
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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>>>;
|
|
|
|
// Required method
|
|
fn <a href="#tymethod.new_service" class="fn">new_service</a>(&self, cfg: Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>) -> 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><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>></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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>>></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>(&self, cfg: Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>) -> 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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>> 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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <<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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>
|
|
) -> <<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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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<IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO> 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<IO></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<<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>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<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<IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO> 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<IO></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<<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>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<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<IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO> 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<IO></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<<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>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<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<IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO> 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<IO></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<<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>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<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<IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO> 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<IO></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<<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>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> <Acceptor as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><IO>>::<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<R> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>> 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<R, <a class="struct" href="../rt/net/struct.TcpStream.html" title="struct actix_web::rt::net::TcpStream">TcpStream</a>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Connector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Connector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <Connector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<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<R> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>> 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<R></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Resolver as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <Resolver as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <Resolver as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<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<R> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>> 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<R, <a class="struct" href="../rt/net/struct.TcpStream.html" title="struct actix_web::rt::net::TcpStream">TcpStream</a>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<TcpConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <TcpConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <TcpConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><ConnectInfo<R>>>::<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<R, IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>> 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<R, TlsStream<IO>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<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<R, IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>> 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<R, SslStream<IO>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<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<R, IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>> 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<R, TlsStream<IO>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<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<R, IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>> 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<R, TlsStream<IO>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<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<R, IO> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>> 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<R, TlsStream<IO>></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<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <TlsConnector as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Connection<R, IO>>>::<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<S, Req> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><S><div class="where">where
|
|
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>,</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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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>(
|
|
&self,
|
|
cfg: <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>
|
|
) -> <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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<S, Req> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><S><div class="where">where
|
|
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>,</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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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>(
|
|
&self,
|
|
cfg: <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_web::dev::ServiceFactory::Config">Config</a>
|
|
) -> <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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<T> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)> 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><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<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><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<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><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <<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><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<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<T, S, B> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)> for <a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a><T, S, B><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><<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>>,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>> + 'static,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><B>> + 'static,
|
|
<<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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<T, <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, B></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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a><T, S, B> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a><T, S, B> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <<a class="struct" href="../../actix_http/h2/service/struct.H2Service.html" title="struct actix_http::h2::service::H2Service">H2Service</a><T, S, B> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)>>::<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<T, S, B, X, U> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(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><<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>>)> for <a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a><T, S, B, X, U><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><<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>>,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>> + 'static,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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>,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><B>> + 'static,
|
|
<<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<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>>,
|
|
<X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>>,
|
|
<X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>), 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>>,
|
|
<U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>>,
|
|
<U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<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<T, <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, B, <X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>></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><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a><T, S, B, X, U> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(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><<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>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a><T, S, B, X, U> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(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><<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>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <<a class="struct" href="../../actix_http/service/struct.HttpService.html" title="struct actix_http::service::HttpService">HttpService</a><T, S, B, X, U> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(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><<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>>)>>::<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<T, S, B, X, U> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)> for <a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a><T, S, B, X, U><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><<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>>,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>>,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><B>>,
|
|
<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<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>>,
|
|
<X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>>,
|
|
<X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<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><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>), 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>>,
|
|
<U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a>: 'static,
|
|
<U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<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><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><<a class="struct" href="../body/struct.BoxBody.html" title="struct actix_web::body::BoxBody">BoxBody</a>>>,
|
|
<U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<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<T, <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, B, <X as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <U as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(<a class="struct" href="../../actix_http/requests/request/struct.Request.html" title="struct actix_http::requests::request::Request">Request</a>, Framed<T, <a class="struct" href="../../actix_http/h1/codec/struct.Codec.html" title="struct actix_http::h1::codec::Codec">Codec</a>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>></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><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a><T, S, B, X, U> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a><T, S, B, X, U> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>>>></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>(
|
|
&self,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>
|
|
) -> <<a class="struct" href="../../actix_http/h1/service/struct.H1Service.html" title="struct actix_http::h1::service::H1Service">H1Service</a><T, S, B, X, U> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><(T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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>>)>>::<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><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> 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><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<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><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<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><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>>>></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<C, Req, Res, Err, InitErr> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req> for BoxServiceFactory<C, Req, Res, Err, InitErr><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><dyn <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a><Req, Future = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Res, Err>>>>, Response = Res, Error = Err>></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><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<BoxServiceFactory<C, Req, Res, Err, InitErr> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, InitErr>>>></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<T, S, Req> <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req> for ApplyTransform<T, S, Req><div class="where">where
|
|
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>,
|
|
T: <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req, InitError = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>,</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> = <T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req>>::<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> = <T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req>>::<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> = <S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<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> = <T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req>>::<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> = <T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, Req>>::<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<T, S, Req></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> |