37 lines
59 KiB
HTML
37 lines
59 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="API documentation for the Rust `Transform` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Transform"><title>actix_web::dev::Transform - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../actix_web/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Trait Transform</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Request">Request</a><a href="#associatedtype.Response">Response</a><a href="#associatedtype.Error">Error</a><a href="#associatedtype.Transform">Transform</a><a href="#associatedtype.InitError">InitError</a><a href="#associatedtype.Future">Future</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.new_transform">new_transform</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.from_err">from_err</a><a href="#method.map_init_err">map_init_err</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Transform%3CS%3E-for-Arc%3CT%3E">Arc<T></a><a href="#impl-Transform%3CS%3E-for-InFlight">InFlight</a><a href="#impl-Transform%3CS%3E-for-InOrder%3CS%3E">InOrder<S></a><a href="#impl-Transform%3CS%3E-for-Rc%3CT%3E">Rc<T></a><a href="#impl-Transform%3CS%3E-for-Timeout%3CE%3E">Timeout<E></a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'Transform', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/actix_service/transform.rs.html#14-75' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>Transform</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait Transform<S> <span class="where fmt-newline">where<br> <Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a> as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Request" title="type actix_web::dev::Service::Request">Request</a> == Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Request" title="type actix_web::dev::Transform::Request">Request</a>,<br> <Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a> as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a> == Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a>,<br> <Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a> as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a> == Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a>,<br> <Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a> as <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>>::<a class="type" href="../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a> == Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>,<br> <Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a> as <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>>::<a class="type" href="../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a> == Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>, </span>{
|
||
type <a href='#associatedtype.Request' class="type">Request</a>;
|
||
type <a href='#associatedtype.Response' class="type">Response</a>;
|
||
type <a href='#associatedtype.Error' class="type">Error</a>;
|
||
type <a href='#associatedtype.Transform' class="type">Transform</a>: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>;
|
||
type <a href='#associatedtype.InitError' class="type">InitError</a>;
|
||
type <a href='#associatedtype.Future' class="type">Future</a>: <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>;
|
||
fn <a href='#tymethod.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a>;
|
||
|
||
fn <a href='#method.map_init_err' class='fnname'>map_init_err</a><F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E><br> <span class="where">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>) -> E</span>,
|
||
{ ... }
|
||
<div class='item-spacer'></div> fn <a href='#method.from_err' class='fnname'>from_err</a><E>(self) -> TransformFromErr<Self, S, E><br> <span class="where">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></span>,
|
||
{ ... }
|
||
}</pre></div><div class='docblock'><p>The <code>Transform</code> trait defines the interface of a Service factory. <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>
|
||
</div>
|
||
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.Request' class='method'><code id='Request.t'>type <a href='#associatedtype.Request' class="type">Request</a></code></h3><div class='docblock'><p>Requests handled by the service.</p>
|
||
</div><h3 id='associatedtype.Response' class='method'><code id='Response.t'>type <a href='#associatedtype.Response' class="type">Response</a></code></h3><div class='docblock'><p>Responses given by the service.</p>
|
||
</div><h3 id='associatedtype.Error' class='method'><code id='Error.t'>type <a href='#associatedtype.Error' class="type">Error</a></code></h3><div class='docblock'><p>Errors produced by the service.</p>
|
||
</div><h3 id='associatedtype.Transform' class='method'><code id='Transform.t'>type <a href='#associatedtype.Transform' class="type">Transform</a>: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a></code></h3><div class='docblock'><p>The <code>TransformService</code> value created by this factory</p>
|
||
</div><h3 id='associatedtype.InitError' class='method'><code id='InitError.t'>type <a href='#associatedtype.InitError' class="type">InitError</a></code></h3><div class='docblock'><p>Errors produced while building a service.</p>
|
||
</div><h3 id='associatedtype.Future' class='method'><code id='Future.t'>type <a href='#associatedtype.Future' class="type">Future</a>: <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a></code></h3><div class='docblock'><p>The future response value.</p>
|
||
</div></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.new_transform' class='method'><code id='new_transform.v'>fn <a href='#tymethod.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code></h3><div class='docblock'><p>Creates and returns a new Service component, asynchronously</p>
|
||
</div></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='provided-methods' class='small-section-header'>Provided methods<a href='#provided-methods' class='anchor'></a></h2><div class='methods'><h3 id='method.map_init_err' class='method'><code id='map_init_err.v'>fn <a href='#method.map_init_err' class='fnname'>map_init_err</a><F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>) -> E, </span></code></h3><div class='docblock'><p>Map this service's factory error to a different error,
|
||
returning a new transform service factory.</p>
|
||
</div><h3 id='method.from_err' class='method'><code id='from_err.v'>fn <a href='#method.from_err' class='fnname'>from_err</a><E>(self) -> TransformFromErr<Self, S, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>, </span></code></h3><div class='docblock'><p>Map this service's init error to any error implementing <code>From</code> for
|
||
this service<code>s </code>Error`.</p>
|
||
<p>Note that this function consumes the receiving transform and returns a
|
||
wrapped version of it.</p>
|
||
</div></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-Transform%3CS%3E-for-Rc%3CT%3E' class='impl'><code class='in-band'>impl<T, S> <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>, </span></code><a href='#impl-Transform%3CS%3E-for-Rc%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/actix_service/transform.rs.html#77-91' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-1' class="type"><code id='Request.t-1'>type <a href='#associatedtype.Request' class="type">Request</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Request" title="type actix_web::dev::Transform::Request">Request</a></code></h4><h4 id='associatedtype.Response-1' class="type"><code id='Response.t-1'>type <a href='#associatedtype.Response' class="type">Response</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a></code></h4><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='#associatedtype.Error' class="type">Error</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a></code></h4><h4 id='associatedtype.InitError-1' class="type"><code id='InitError.t-1'>type <a href='#associatedtype.InitError' class="type">InitError</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></code></h4><h4 id='associatedtype.Transform-1' class="type"><code id='Transform.t-1'>type <a href='#associatedtype.Transform' class="type">Transform</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a></code></h4><h4 id='associatedtype.Future-1' class="type"><code id='Future.t-1'>type <a href='#associatedtype.Future' class="type">Future</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code></h4><h4 id='method.new_transform' class="method hidden"><code id='new_transform.v-1'>fn <a href='#method.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_service/transform.rs.html#88-90' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-for-Arc%3CT%3E' class='impl'><code class='in-band'>impl<T, S> <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>, </span></code><a href='#impl-Transform%3CS%3E-for-Arc%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/actix_service/transform.rs.html#93-107' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-2' class="type"><code id='Request.t-2'>type <a href='#associatedtype.Request' class="type">Request</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Request" title="type actix_web::dev::Transform::Request">Request</a></code></h4><h4 id='associatedtype.Response-2' class="type"><code id='Response.t-2'>type <a href='#associatedtype.Response' class="type">Response</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Response" title="type actix_web::dev::Transform::Response">Response</a></code></h4><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='#associatedtype.Error' class="type">Error</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Error" title="type actix_web::dev::Transform::Error">Error</a></code></h4><h4 id='associatedtype.InitError-2' class="type"><code id='InitError.t-2'>type <a href='#associatedtype.InitError' class="type">InitError</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></code></h4><h4 id='associatedtype.Transform-2' class="type"><code id='Transform.t-2'>type <a href='#associatedtype.Transform' class="type">Transform</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a></code></h4><h4 id='associatedtype.Future-2' class="type"><code id='Future.t-2'>type <a href='#associatedtype.Future' class="type">Future</a> = <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code></h4><h4 id='method.new_transform-1' class="method hidden"><code id='new_transform.v-2'>fn <a href='#method.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> <T as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_service/transform.rs.html#104-106' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-for-InFlight' class='impl'><code class='in-band'>impl<S> <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S> for <a class="struct" href="../../actix_utils/inflight/struct.InFlight.html" title="struct actix_utils::inflight::InFlight">InFlight</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>, </span></code><a href='#impl-Transform%3CS%3E-for-InFlight' class='anchor'></a><a class='srclink' href='../../src/actix_utils/inflight.rs.html#29-40' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-3' class="type"><code id='Request.t-3'>type <a href='#associatedtype.Request' class="type">Request</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Request" title="type actix_web::dev::Service::Request">Request</a></code></h4><h4 id='associatedtype.Response-3' class="type"><code id='Response.t-3'>type <a href='#associatedtype.Response' class="type">Response</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-3' class="type"><code id='Error.t-3'>type <a href='#associatedtype.Error' class="type">Error</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a></code></h4><h4 id='associatedtype.InitError-3' class="type"><code id='InitError.t-3'>type <a href='#associatedtype.InitError' class="type">InitError</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><h4 id='associatedtype.Transform-3' class="type"><code id='Transform.t-3'>type <a href='#associatedtype.Transform' class="type">Transform</a> = <a class="struct" href="../../actix_utils/inflight/struct.InFlightService.html" title="struct actix_utils::inflight::InFlightService">InFlightService</a><S></code></h4><h4 id='associatedtype.Future-3' class="type"><code id='Future.t-3'>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><<<a class="struct" href="../../actix_utils/inflight/struct.InFlight.html" title="struct actix_utils::inflight::InFlight">InFlight</a> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../../actix_utils/inflight/struct.InFlight.html" title="struct actix_utils::inflight::InFlight">InFlight</a> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-2' class="method hidden"><code id='new_transform.v-3'>fn <a href='#method.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> <<a class="struct" href="../../actix_utils/inflight/struct.InFlight.html" title="struct actix_utils::inflight::InFlight">InFlight</a> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_utils/inflight.rs.html#37-39' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-for-Timeout%3CE%3E' class='impl'><code class='in-band'>impl<S, E> <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S> for <a class="struct" href="../../actix_utils/timeout/struct.Timeout.html" title="struct actix_utils::timeout::Timeout">Timeout</a><E> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>, </span></code><a href='#impl-Transform%3CS%3E-for-Timeout%3CE%3E' class='anchor'></a><a class='srclink' href='../../src/actix_utils/timeout.rs.html#83-100' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-4' class="type"><code id='Request.t-4'>type <a href='#associatedtype.Request' class="type">Request</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Request" title="type actix_web::dev::Service::Request">Request</a></code></h4><h4 id='associatedtype.Response-4' class="type"><code id='Response.t-4'>type <a href='#associatedtype.Response' class="type">Response</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-4' class="type"><code id='Error.t-4'>type <a href='#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../../actix_utils/timeout/enum.TimeoutError.html" title="enum actix_utils::timeout::TimeoutError">TimeoutError</a><<S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a>></code></h4><h4 id='associatedtype.InitError-4' class="type"><code id='InitError.t-4'>type <a href='#associatedtype.InitError' class="type">InitError</a> = E</code></h4><h4 id='associatedtype.Transform-4' class="type"><code id='Transform.t-4'>type <a href='#associatedtype.Transform' class="type">Transform</a> = <a class="struct" href="../../actix_utils/timeout/struct.TimeoutService.html" title="struct actix_utils::timeout::TimeoutService">TimeoutService</a><S></code></h4><h4 id='associatedtype.Future-4' class="type"><code id='Future.t-4'>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><<<a class="struct" href="../../actix_utils/timeout/struct.Timeout.html" title="struct actix_utils::timeout::Timeout">Timeout</a><E> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../../actix_utils/timeout/struct.Timeout.html" title="struct actix_utils::timeout::Timeout">Timeout</a><E> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-3' class="method hidden"><code id='new_transform.v-4'>fn <a href='#method.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> <<a class="struct" href="../../actix_utils/timeout/struct.Timeout.html" title="struct actix_utils::timeout::Timeout">Timeout</a><E> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_utils/timeout.rs.html#94-99' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-for-InOrder%3CS%3E' class='impl'><code class='in-band'>impl<S> <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S> for <a class="struct" href="../../actix_utils/order/struct.InOrder.html" title="struct actix_utils::order::InOrder">InOrder</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>,<br> <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a>: 'static,<br> <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,<br> <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a>: 'static, </span></code><a href='#impl-Transform%3CS%3E-for-InOrder%3CS%3E' class='anchor'></a><a class='srclink' href='../../src/actix_utils/order.rs.html#84-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-5' class="type"><code id='Request.t-5'>type <a href='#associatedtype.Request' class="type">Request</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Request" title="type actix_web::dev::Service::Request">Request</a></code></h4><h4 id='associatedtype.Response-5' class="type"><code id='Response.t-5'>type <a href='#associatedtype.Response' class="type">Response</a> = <S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-5' class="type"><code id='Error.t-5'>type <a href='#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../../actix_utils/order/enum.InOrderError.html" title="enum actix_utils::order::InOrderError">InOrderError</a><<S as <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>>::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a>></code></h4><h4 id='associatedtype.InitError-5' class="type"><code id='InitError.t-5'>type <a href='#associatedtype.InitError' class="type">InitError</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><h4 id='associatedtype.Transform-5' class="type"><code id='Transform.t-5'>type <a href='#associatedtype.Transform' class="type">Transform</a> = <a class="struct" href="../../actix_utils/order/struct.InOrderService.html" title="struct actix_utils::order::InOrderService">InOrderService</a><S></code></h4><h4 id='associatedtype.Future-5' class="type"><code id='Future.t-5'>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><<<a class="struct" href="../../actix_utils/order/struct.InOrder.html" title="struct actix_utils::order::InOrder">InOrder</a><S> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../../actix_utils/order/struct.InOrder.html" title="struct actix_utils::order::InOrder">InOrder</a><S> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-4' class="method hidden"><code id='new_transform.v-5'>fn <a href='#method.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> <<a class="struct" href="../../actix_utils/order/struct.InOrder.html" title="struct actix_utils::order::InOrder">InOrder</a><S> as <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S>>::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_utils/order.rs.html#98-100' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-Transform%3CS%3E' class='impl'><code class='in-band'>impl<S, B> Transform<S> for <a class="struct" href="../../actix_web/middleware/errhandlers/struct.ErrorHandlers.html" title="struct actix_web::middleware::errhandlers::ErrorHandlers">ErrorHandlers</a><B> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a><Request = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,<br> S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,<br> B: 'static, </span></code><a href='#impl-Transform%3CS%3E' class='anchor'></a><a class='srclink' href='../../src/actix_web/middleware/errhandlers.rs.html#84-103' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-6' class="type"><code id='Request.t-6'>type <a href='#associatedtype.Request-6' class="type">Request</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></code></h4><h4 id='associatedtype.Response-6' class="type"><code id='Response.t-6'>type <a href='#associatedtype.Response-6' class="type">Response</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B></code></h4><h4 id='associatedtype.Error-6' class="type"><code id='Error.t-6'>type <a href='#associatedtype.Error-6' class="type">Error</a> = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a></code></h4><h4 id='associatedtype.InitError-6' class="type"><code id='InitError.t-6'>type <a href='#associatedtype.InitError-6' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><h4 id='associatedtype.Transform-6' class="type"><code id='Transform.t-6'>type <a href='#associatedtype.Transform-6' class="type">Transform</a> = ErrorHandlersMiddleware<S, B></code></h4><h4 id='associatedtype.Future-6' class="type"><code id='Future.t-6'>type <a href='#associatedtype.Future-6' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-5' class="method hidden"><code id='new_transform.v-6'>fn <a href='#method.new_transform-5' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_web/middleware/errhandlers.rs.html#97-102' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-1' class='impl'><code class='in-band'>impl<S, B> Transform<S> for <a class="struct" href="../../actix_web/middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a>,<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a><Request = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>, </span></code><a href='#impl-Transform%3CS%3E-1' class='anchor'></a><a class='srclink' href='../../src/actix_web/middleware/compress.rs.html#71-89' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-7' class="type"><code id='Request.t-7'>type <a href='#associatedtype.Request-7' class="type">Request</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></code></h4><h4 id='associatedtype.Response-7' class="type"><code id='Response.t-7'>type <a href='#associatedtype.Response-7' class="type">Response</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><<a class="struct" href="../../actix_http/encoding/encoder/struct.Encoder.html" title="struct actix_http::encoding::encoder::Encoder">Encoder</a><B>></code></h4><h4 id='associatedtype.Error-7' class="type"><code id='Error.t-7'>type <a href='#associatedtype.Error-7' class="type">Error</a> = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a></code></h4><h4 id='associatedtype.InitError-7' class="type"><code id='InitError.t-7'>type <a href='#associatedtype.InitError-7' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><h4 id='associatedtype.Transform-7' class="type"><code id='Transform.t-7'>type <a href='#associatedtype.Transform-7' class="type">Transform</a> = CompressMiddleware<S></code></h4><h4 id='associatedtype.Future-7' class="type"><code id='Future.t-7'>type <a href='#associatedtype.Future-7' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-6' class="method hidden"><code id='new_transform.v-7'>fn <a href='#method.new_transform-6' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_web/middleware/compress.rs.html#83-88' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-2' class='impl'><code class='in-band'>impl<S, B> Transform<S> for <a class="struct" href="../../actix_web/middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a><Request = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,<br> S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static, </span></code><a href='#impl-Transform%3CS%3E-2' class='anchor'></a><a class='srclink' href='../../src/actix_web/middleware/defaultheaders.rs.html#89-107' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-8' class="type"><code id='Request.t-8'>type <a href='#associatedtype.Request-8' class="type">Request</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></code></h4><h4 id='associatedtype.Response-8' class="type"><code id='Response.t-8'>type <a href='#associatedtype.Response-8' class="type">Response</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B></code></h4><h4 id='associatedtype.Error-8' class="type"><code id='Error.t-8'>type <a href='#associatedtype.Error-8' class="type">Error</a> = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a></code></h4><h4 id='associatedtype.InitError-8' class="type"><code id='InitError.t-8'>type <a href='#associatedtype.InitError-8' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><h4 id='associatedtype.Transform-8' class="type"><code id='Transform.t-8'>type <a href='#associatedtype.Transform-8' class="type">Transform</a> = DefaultHeadersMiddleware<S></code></h4><h4 id='associatedtype.Future-8' class="type"><code id='Future.t-8'>type <a href='#associatedtype.Future-8' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-7' class="method hidden"><code id='new_transform.v-8'>fn <a href='#method.new_transform-7' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_web/middleware/defaultheaders.rs.html#101-106' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-3' class='impl'><code class='in-band'>impl<S, B> Transform<S> for <a class="struct" href="../../actix_web/middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a><Request = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,<br> B: <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a>, </span></code><a href='#impl-Transform%3CS%3E-3' class='anchor'></a><a class='srclink' href='../../src/actix_web/middleware/logger.rs.html#118-136' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-9' class="type"><code id='Request.t-9'>type <a href='#associatedtype.Request-9' class="type">Request</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></code></h4><h4 id='associatedtype.Response-9' class="type"><code id='Response.t-9'>type <a href='#associatedtype.Response-9' class="type">Response</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><StreamLog<B>></code></h4><h4 id='associatedtype.Error-9' class="type"><code id='Error.t-9'>type <a href='#associatedtype.Error-9' class="type">Error</a> = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a></code></h4><h4 id='associatedtype.InitError-9' class="type"><code id='InitError.t-9'>type <a href='#associatedtype.InitError-9' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><h4 id='associatedtype.Transform-9' class="type"><code id='Transform.t-9'>type <a href='#associatedtype.Transform-9' class="type">Transform</a> = LoggerMiddleware<S></code></h4><h4 id='associatedtype.Future-9' class="type"><code id='Future.t-9'>type <a href='#associatedtype.Future-9' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-8' class="method hidden"><code id='new_transform.v-9'>fn <a href='#method.new_transform-8' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_web/middleware/logger.rs.html#130-135' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-4' class='impl'><code class='in-band'>impl<S, B> Transform<S> for <a class="struct" href="../../actix_web/middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a><Request = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,<br> S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static, </span></code><a href='#impl-Transform%3CS%3E-4' class='anchor'></a><a class='srclink' href='../../src/actix_web/middleware/normalize.rs.html#35-53' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-10' class="type"><code id='Request.t-10'>type <a href='#associatedtype.Request-10' class="type">Request</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></code></h4><h4 id='associatedtype.Response-10' class="type"><code id='Response.t-10'>type <a href='#associatedtype.Response-10' class="type">Response</a> = <a class="struct" href="../../actix_web/dev/struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B></code></h4><h4 id='associatedtype.Error-10' class="type"><code id='Error.t-10'>type <a href='#associatedtype.Error-10' class="type">Error</a> = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a></code></h4><h4 id='associatedtype.InitError-10' class="type"><code id='InitError.t-10'>type <a href='#associatedtype.InitError-10' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><h4 id='associatedtype.Transform-10' class="type"><code id='Transform.t-10'>type <a href='#associatedtype.Transform-10' class="type">Transform</a> = NormalizePathNormalization<S></code></h4><h4 id='associatedtype.Future-10' class="type"><code id='Future.t-10'>type <a href='#associatedtype.Future-10' class="type">Future</a> = <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>></code></h4><h4 id='method.new_transform-9' class="method hidden"><code id='new_transform.v-10'>fn <a href='#method.new_transform-9' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_web/middleware/normalize.rs.html#47-52' title='goto source code'>[src]</a></h4></div><h3 id='impl-Transform%3CS%3E-5' class='impl'><code class='in-band'>impl<S, T> Transform<S> for <a class="struct" href="../../actix_web/middleware/struct.Condition.html" title="struct actix_web::middleware::Condition">Condition</a><T> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../actix_web/dev/trait.Service.html" title="trait actix_web::dev::Service">Service</a>,<br> T: <a class="trait" href="../../actix_web/dev/trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, Request = S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Request" title="type actix_web::dev::Service::Request">Request</a>, Response = S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a>, Error = S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a>>, </span></code><a href='#impl-Transform%3CS%3E-5' class='anchor'></a><a class='srclink' href='../../src/actix_web/middleware/condition.rs.html#33-59' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request-11' class="type"><code id='Request.t-11'>type <a href='#associatedtype.Request-11' class="type">Request</a> = S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Request" title="type actix_web::dev::Service::Request">Request</a></code></h4><h4 id='associatedtype.Response-11' class="type"><code id='Response.t-11'>type <a href='#associatedtype.Response-11' class="type">Response</a> = S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Response" title="type actix_web::dev::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-11' class="type"><code id='Error.t-11'>type <a href='#associatedtype.Error-11' class="type">Error</a> = S::<a class="type" href="../../actix_web/dev/trait.Service.html#associatedtype.Error" title="type actix_web::dev::Service::Error">Error</a></code></h4><h4 id='associatedtype.InitError-11' class="type"><code id='InitError.t-11'>type <a href='#associatedtype.InitError-11' class="type">InitError</a> = T::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a></code></h4><h4 id='associatedtype.Transform-11' class="type"><code id='Transform.t-11'>type <a href='#associatedtype.Transform-11' class="type">Transform</a> = ConditionMiddleware<T::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, S></code></h4><h4 id='associatedtype.Future-11' class="type"><code id='Future.t-11'>type <a href='#associatedtype.Future-11' class="type">Future</a> = <a class="enum" href="../../futures/future/either/enum.Either.html" title="enum futures::future::either::Either">Either</a><<a class="struct" href="../../futures/future/map/struct.Map.html" title="struct futures::future::map::Map">Map</a><T::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.fn.html">fn</a>(_: T::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>>, <a class="struct" href="../../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>></code></h4><h4 id='method.new_transform-10' class="method hidden"><code id='new_transform.v-11'>fn <a href='#method.new_transform-10' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../../actix_web/dev/trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></code><a class='srclink' href='../../src/actix_web/middleware/condition.rs.html#48-58' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../../implementors/actix_service/transform/trait.Transform.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_web";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |