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

89 lines
51 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="Defines the interface of a service factory that wraps inner service during construction."><title>Transform 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="#">Transform</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.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.Transform">Transform</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.new_transform">new_transform</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Transform%3CS,+Req%3E-for-Arc%3CT%3E">Arc&lt;T&gt;</a></li><li><a href="#impl-Transform%3CS,+Req%3E-for-Rc%3CT%3E">Rc&lt;T&gt;</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="#">Transform</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Transform&lt;S, Req&gt; {
type <a href="#associatedtype.Response" class="associatedtype">Response</a>;
type <a href="#associatedtype.Error" class="associatedtype">Error</a>;
type <a href="#associatedtype.Transform" class="associatedtype">Transform</a>: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req, Response = Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a>, Error = Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a>&gt;;
type <a href="#associatedtype.InitError" class="associatedtype">InitError</a>;
type <a href="#associatedtype.Future" class="associatedtype">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;;
// Required method
fn <a href="#tymethod.new_transform" class="fn">new_transform</a>(&amp;self, service: S) -&gt; Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Defines the interface of a service factory that wraps inner service during construction.</p>
<p>Transformers wrap an inner service and runs during inbound and/or outbound processing in the
service lifecycle. It may modify request and/or response.</p>
<p>For example, a timeout service wrapper:</p>
<div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested"></a><pre class="rust rust-example-rendered"><code><span class="kw">pub struct </span>Timeout&lt;S&gt; {
service: S,
timeout: Duration,
}
<span class="kw">impl</span>&lt;S: Service&lt;Req&gt;, Req&gt; Service&lt;Req&gt; <span class="kw">for </span>Timeout&lt;S&gt; {
<span class="kw">type </span>Response = S::Response;
<span class="kw">type </span>Error = TimeoutError&lt;S::Error&gt;;
<span class="kw">type </span>Future = TimeoutServiceResponse&lt;S&gt;;
<span class="macro">actix_service::forward_ready!</span>(service);
<span class="kw">fn </span>call(<span class="kw-2">&amp;</span><span class="self">self</span>, req: Req) -&gt; <span class="self">Self</span>::Future {
TimeoutServiceResponse {
fut: <span class="self">self</span>.service.call(req),
sleep: Sleep::new(clock::now() + <span class="self">self</span>.timeout),
}
}
}</code></pre></div>
<p>This wrapper service is decoupled from the underlying service implementation and could be
applied to any service.</p>
<p>The <code>Transform</code> trait defines the interface of a service wrapper. <code>Transform</code> is often
implemented for middleware, defining how to construct a middleware Service. A Service that is
constructed by the factory takes the Service that follows it during execution as a parameter,
assuming ownership of the next Service.</p>
<p>A transform for the <code>Timeout</code> middleware could look like this:</p>
<div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested"></a><pre class="rust rust-example-rendered"><code><span class="kw">pub struct </span>TimeoutTransform {
timeout: Duration,
}
<span class="kw">impl</span>&lt;S: Service&lt;Req&gt;, Req&gt; Transform&lt;S, Req&gt; <span class="kw">for </span>TimeoutTransform {
<span class="kw">type </span>Response = S::Response;
<span class="kw">type </span>Error = TimeoutError&lt;S::Error&gt;;
<span class="kw">type </span>InitError = S::Error;
<span class="kw">type </span>Transform = Timeout&lt;S&gt;;
<span class="kw">type </span>Future = Ready&lt;<span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::Transform, <span class="self">Self</span>::InitError&gt;&gt;;
<span class="kw">fn </span>new_transform(<span class="kw-2">&amp;</span><span class="self">self</span>, service: S) -&gt; <span class="self">Self</span>::Future {
ready(<span class="prelude-val">Ok</span>(Timeout {
service,
timeout: <span class="self">self</span>.timeout,
}))
}
}</code></pre></div>
</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 produced by the service.</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 service.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Transform" class="method"><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a>: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req, Response = Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a>, Error = Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>The <code>TransformService</code> value 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 produced while building a transform service.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Future" class="method"><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>The future response value.</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_transform" class="method"><h4 class="code-header">fn <a href="#tymethod.new_transform" class="fn">new_transform</a>(&amp;self, service: S) -&gt; Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></summary><div class="docblock"><p>Creates and returns a new Transform component, 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-Transform%3CS,+Req%3E-for-Rc%3CT%3E" class="impl"><a href="#impl-Transform%3CS,+Req%3E-for-Rc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S, Req&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;,</div></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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a></h4></section><section id="associatedtype.Error-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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a></h4></section><section id="associatedtype.Transform-1" class="associatedtype trait-impl"><a href="#associatedtype.Transform-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a></h4></section><section id="associatedtype.InitError-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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></h4></section><section id="associatedtype.Future-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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section><section id="method.new_transform" class="method trait-impl"><a href="#method.new_transform" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_transform" class="fn">new_transform</a>(&amp;self, service: S) -&gt; &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+Req%3E-for-Arc%3CT%3E" class="impl"><a href="#impl-Transform%3CS,+Req%3E-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S, Req&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;,</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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a></h4></section><section id="associatedtype.Error-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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a></h4></section><section id="associatedtype.Transform-2" class="associatedtype trait-impl"><a href="#associatedtype.Transform-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a></h4></section><section id="associatedtype.InitError-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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></h4></section><section id="associatedtype.Future-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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section><section id="method.new_transform-1" class="method trait-impl"><a href="#method.new_transform-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.new_transform" class="fn">new_transform</a>(&amp;self, service: S) -&gt; &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::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-Transform%3CS,+ServiceRequest%3E-for-Compress" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/compress.rs.html#79-93">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-Compress" class="anchor">§</a><h3 class="code-header">impl&lt;S, B&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt; for <a class="struct" href="../middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a><div class="where">where
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a>,
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,</div></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>__compress</code></strong> only.</div></span></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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;<a class="enum" href="../body/enum.EitherBody.html" title="enum actix_web::body::EitherBody">EitherBody</a>&lt;<a class="struct" href="../../actix_http/encoding/encoder/struct.Encoder.html" title="struct actix_http::encoding::encoder::Encoder">Encoder</a>&lt;B&gt;&gt;&gt;</h4></section><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Transform-3" class="associatedtype trait-impl"><a href="#associatedtype.Transform-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = CompressMiddleware&lt;S&gt;</h4></section><section id="associatedtype.InitError-3" class="associatedtype trait-impl"><a href="#associatedtype.InitError-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-3" class="associatedtype trait-impl"><a href="#associatedtype.Future-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-DefaultHeaders" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/default_headers.rs.html#108-125">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-DefaultHeaders" class="anchor">§</a><h3 class="code-header">impl&lt;S, B&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt; for <a class="struct" href="../middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a><div class="where">where
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,
S::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,</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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;</h4></section><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Transform-4" class="associatedtype trait-impl"><a href="#associatedtype.Transform-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = DefaultHeadersMiddleware&lt;S&gt;</h4></section><section id="associatedtype.InitError-4" class="associatedtype trait-impl"><a href="#associatedtype.InitError-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-4" class="associatedtype trait-impl"><a href="#associatedtype.Future-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-ErrorHandlers%3CB%3E" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/err_handlers.rs.html#278-303">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-ErrorHandlers%3CB%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, B&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt; for <a class="struct" href="../middleware/struct.ErrorHandlers.html" title="struct actix_web::middleware::ErrorHandlers">ErrorHandlers</a>&lt;B&gt;<div class="where">where
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt; + 'static,
S::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,
B: 'static,</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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;<a class="enum" href="../body/enum.EitherBody.html" title="enum actix_web::body::EitherBody">EitherBody</a>&lt;B&gt;&gt;</h4></section><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Transform-5" class="associatedtype trait-impl"><a href="#associatedtype.Transform-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = ErrorHandlersMiddleware&lt;S, B&gt;</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> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.ErrorHandlers.html" title="struct actix_web::middleware::ErrorHandlers">ErrorHandlers</a>&lt;B&gt; as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.ErrorHandlers.html" title="struct actix_web::middleware::ErrorHandlers">ErrorHandlers</a>&lt;B&gt; as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-Logger" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/logger.rs.html#249-282">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-Logger" class="anchor">§</a><h3 class="code-header">impl&lt;S, B&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt; for <a class="struct" href="../middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a><div class="where">where
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a>,</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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;StreamLog&lt;B&gt;&gt;</h4></section><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Transform-6" class="associatedtype trait-impl"><a href="#associatedtype.Transform-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = LoggerMiddleware&lt;S&gt;</h4></section><section id="associatedtype.InitError-6" class="associatedtype trait-impl"><a href="#associatedtype.InitError-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-6" class="associatedtype trait-impl"><a href="#associatedtype.Future-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-NormalizePath" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/normalize.rs.html#114-132">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-NormalizePath" class="anchor">§</a><h3 class="code-header">impl&lt;S, B&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt; for <a class="struct" href="../middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a><div class="where">where
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,
S::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,</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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;B&gt;</h4></section><section id="associatedtype.Error-7" class="associatedtype trait-impl"><a href="#associatedtype.Error-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Transform-7" class="associatedtype trait-impl"><a href="#associatedtype.Transform-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = NormalizePathNormalization&lt;S&gt;</h4></section><section id="associatedtype.InitError-7" class="associatedtype trait-impl"><a href="#associatedtype.InitError-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Future-7" class="associatedtype trait-impl"><a href="#associatedtype.Future-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Future" class="associatedtype">Future</a> = Ready&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+Req%3E-for-Compat%3CT%3E" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/compat.rs.html#59-80">source</a><a href="#impl-Transform%3CS,+Req%3E-for-Compat%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T, Req&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt; for <a class="struct" href="../middleware/struct.Compat.html" title="struct actix_web::middleware::Compat">Compat</a>&lt;T&gt;<div class="where">where
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req&gt;,
T: <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;,
T::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a>: 'static,
T::<a class="associatedtype" href="trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a>: MapServiceResponseBody,
T::<a class="associatedtype" href="trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,</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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a></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> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section><section id="associatedtype.Transform-8" class="associatedtype trait-impl"><a href="#associatedtype.Transform-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = CompatMiddleware&lt;&lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>&gt;</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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></h4></section><section id="associatedtype.Future-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> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.Compat.html" title="struct actix_web::middleware::Compat">Compat</a>&lt;T&gt; as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.Compat.html" title="struct actix_web::middleware::Compat">Compat</a>&lt;T&gt; as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Transform%3CS,+Req%3E-for-Condition%3CT%3E" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/condition.rs.html#43-69">source</a><a href="#impl-Transform%3CS,+Req%3E-for-Condition%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T, Req, BE, BD, Err&gt; <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt; for <a class="struct" href="../middleware/struct.Condition.html" title="struct actix_web::middleware::Condition">Condition</a>&lt;T&gt;<div class="where">where
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a>&lt;Req, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;BD&gt;, Error = Err&gt; + 'static,
T: <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;BE&gt;, Error = Err&gt;,
T::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a>: 'static,
T::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>: 'static,
T::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>: 'static,</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> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a>&lt;<a class="enum" href="../body/enum.EitherBody.html" title="enum actix_web::body::EitherBody">EitherBody</a>&lt;BE, BD&gt;&gt;</h4></section><section id="associatedtype.Error-9" class="associatedtype trait-impl"><a href="#associatedtype.Error-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = Err</h4></section><section id="associatedtype.Transform-9" class="associatedtype trait-impl"><a href="#associatedtype.Transform-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Transform" class="associatedtype">Transform</a> = ConditionMiddleware&lt;&lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, S&gt;</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> = &lt;T as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></h4></section><section id="associatedtype.Future-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> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../middleware/struct.Condition.html" title="struct actix_web::middleware::Condition">Condition</a>&lt;T&gt; as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, &lt;<a class="struct" href="../middleware/struct.Condition.html" title="struct actix_web::middleware::Condition">Condition</a>&lt;T&gt; as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a>&lt;S, Req&gt;&gt;::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>&gt;&gt;&gt;&gt;</h4></section></div></details></div><script src="../../trait.impl/actix_service/transform/trait.Transform.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>