mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-18 23:21:50 +01:00
34 lines
32 KiB
HTML
34 lines
32 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_service - 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-b778ab399e080a4b.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_service" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (7608018cb 2024-09-29)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-54bc299d2a5e4e43.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.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_service/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_service/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_service/index.html">actix_<wbr>service</a><span class="version">2.0.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Service<wbr>Factory</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Config" title="Config">Config</a></li><li><a href="#associatedtype.Error" title="Error">Error</a></li><li><a href="#associatedtype.Future" title="Future">Future</a></li><li><a href="#associatedtype.InitError" title="InitError">InitError</a></li><li><a href="#associatedtype.Response" title="Response">Response</a></li><li><a href="#associatedtype.Service" title="Service">Service</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.new_service" title="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%3CReq%3E-for-Arc%3CS%3E" title="Arc<S>">Arc<S></a></li><li><a href="#impl-ServiceFactory%3CReq%3E-for-Rc%3CS%3E" title="Rc<S>">Rc<S></a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate actix_<wbr>service</a></h2></div></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"><span class="rustdoc-breadcrumbs"><a href="index.html">actix_service</a></span><h1>Trait <span class="trait">ServiceFactory</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/actix_service/lib.rs.html#140-161">source</a> </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_service::Service">Service</a><Req, Response = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_service::ServiceFactory::Response">Response</a>, Error = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_service::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_service::ServiceFactory::Service">Service</a>, Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_service::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_service::ServiceFactory::Config">Config</a>) -> Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_service::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_service::fn_factory"><code>fn_factory</code></a> or <a href="fn.fn_factory_with_config.html" title="fn actix_service::fn_factory_with_config"><code>fn_factory_with_config</code></a> 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"><a class="src rightside" href="../src/actix_service/lib.rs.html#142">source</a><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"><a class="src rightside" href="../src/actix_service/lib.rs.html#145">source</a><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"><a class="src rightside" href="../src/actix_service/lib.rs.html#148">source</a><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"><a class="src rightside" href="../src/actix_service/lib.rs.html#151">source</a><h4 class="code-header">type <a href="#associatedtype.Service" class="associatedtype">Service</a>: <a class="trait" href="trait.Service.html" title="trait actix_service::Service">Service</a><Req, Response = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_service::ServiceFactory::Response">Response</a>, Error = Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_service::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"><a class="src rightside" href="../src/actix_service/lib.rs.html#154">source</a><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"><a class="src rightside" href="../src/actix_service/lib.rs.html#157">source</a><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_service::ServiceFactory::Service">Service</a>, Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_service::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"><a class="src rightside" href="../src/actix_service/lib.rs.html#160">source</a><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_service::ServiceFactory::Config">Config</a>) -> Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_service::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%3CReq%3E-for-Rc%3CS%3E" class="impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#250-264">source</a><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_service::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_service::ServiceFactory">ServiceFactory</a><Req>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#254">source</a><a href="#associatedtype.Response-1" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_service::ServiceFactory::Response">Response</a></h4></section><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#255">source</a><a href="#associatedtype.Error-1" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_service::ServiceFactory::Error">Error</a></h4></section><section id="associatedtype.Config-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#256">source</a><a href="#associatedtype.Config-1" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_service::ServiceFactory::Config">Config</a></h4></section><section id="associatedtype.Service-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#257">source</a><a href="#associatedtype.Service-1" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a></h4></section><section id="associatedtype.InitError-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#258">source</a><a href="#associatedtype.InitError-1" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_service::ServiceFactory::InitError">InitError</a></h4></section><section id="associatedtype.Future-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#259">source</a><a href="#associatedtype.Future-1" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_service::ServiceFactory::Future">Future</a></h4></section><section id="method.new_service" class="method trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#261-263">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, cfg: S::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_service::ServiceFactory::Config">Config</a>) -> S::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_service::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 class="src rightside" href="../src/actix_service/lib.rs.html#266-280">source</a><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_service::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_service::ServiceFactory">ServiceFactory</a><Req>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#270">source</a><a href="#associatedtype.Response-2" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Response" title="type actix_service::ServiceFactory::Response">Response</a></h4></section><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#271">source</a><a href="#associatedtype.Error-2" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Error" title="type actix_service::ServiceFactory::Error">Error</a></h4></section><section id="associatedtype.Config-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#272">source</a><a href="#associatedtype.Config-2" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_service::ServiceFactory::Config">Config</a></h4></section><section id="associatedtype.Service-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#273">source</a><a href="#associatedtype.Service-2" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a></h4></section><section id="associatedtype.InitError-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#274">source</a><a href="#associatedtype.InitError-2" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_service::ServiceFactory::InitError">InitError</a></h4></section><section id="associatedtype.Future-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#275">source</a><a href="#associatedtype.Future-2" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_service::ServiceFactory::Future">Future</a></h4></section><section id="method.new_service-1" class="method trait-impl"><a class="src rightside" href="../src/actix_service/lib.rs.html#277-279">source</a><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, cfg: S::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_service::ServiceFactory::Config">Config</a>) -> S::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_service::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%3CReq%3E-for-BoxServiceFactory%3CC,+Req,+Res,+Err,+InitErr%3E" class="impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#94-112">source</a><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_service::ServiceFactory">ServiceFactory</a><Req> for <a class="struct" href="boxed/struct.BoxServiceFactory.html" title="struct actix_service::boxed::BoxServiceFactory">BoxServiceFactory</a><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-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#101">source</a><a href="#associatedtype.Response-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Response" class="associatedtype">Response</a> = Res</h4></section><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#102">source</a><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = Err</h4></section><section id="associatedtype.Config-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#103">source</a><a href="#associatedtype.Config-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Config" class="associatedtype">Config</a> = C</h4></section><section id="associatedtype.Service-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#104">source</a><a href="#associatedtype.Service-3" 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_service::Service">Service</a><Req, Error = Err, Response = Res, 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>>>>>></h4></section><section id="associatedtype.InitError-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#105">source</a><a href="#associatedtype.InitError-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = InitErr</h4></section><section id="associatedtype.Future-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/boxed.rs.html#107">source</a><a href="#associatedtype.Future-3" 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="boxed/struct.BoxServiceFactory.html" title="struct actix_service::boxed::BoxServiceFactory">BoxServiceFactory</a><C, Req, Res, Err, InitErr> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::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 class="src rightside" href="../src/actix_service/transform.rs.html#153-174">source</a><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_service::ServiceFactory">ServiceFactory</a><Req> for <a class="struct" href="struct.ApplyTransform.html" title="struct actix_service::ApplyTransform">ApplyTransform</a><T, S, Req><div class="where">where
|
|
S: <a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">ServiceFactory</a><Req>,
|
|
T: <a class="trait" href="trait.Transform.html" title="trait actix_service::Transform">Transform</a><S::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a>, Req, InitError = S::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_service::ServiceFactory::InitError">InitError</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Response-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/transform.rs.html#158">source</a><a href="#associatedtype.Response-4" 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_service::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a>, Req>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_service::Transform::Response">Response</a></h4></section><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/transform.rs.html#159">source</a><a href="#associatedtype.Error-4" 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_service::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a>, Req>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_service::Transform::Error">Error</a></h4></section><section id="associatedtype.Config-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/transform.rs.html#161">source</a><a href="#associatedtype.Config-4" 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_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Config" title="type actix_service::ServiceFactory::Config">Config</a></h4></section><section id="associatedtype.Service-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/transform.rs.html#162">source</a><a href="#associatedtype.Service-4" 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_service::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a>, Req>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_service::Transform::Transform">Transform</a></h4></section><section id="associatedtype.InitError-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/transform.rs.html#163">source</a><a href="#associatedtype.InitError-4" 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_service::Transform">Transform</a><<S as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">ServiceFactory</a><Req>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_service::ServiceFactory::Service">Service</a>, Req>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_service::Transform::InitError">InitError</a></h4></section><section id="associatedtype.Future-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/actix_service/transform.rs.html#164">source</a><a href="#associatedtype.Future-4" 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" async></script></section></div></main></body></html> |