31 lines
39 KiB
HTML
31 lines
39 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 `Service` trait in crate `actix_service`."><meta name="keywords" content="rust, rustlang, rust-lang, Service"><title>actix_service::Service - 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_service/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait Service</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.Future">Future</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.call">call</a><a href="#tymethod.poll_ready">poll_ready</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Service-for-%26%27a%20mut%20S">&'a mut S</a><a href="#impl-Service-for-Box%3CS%3E">Box<S></a><a href="#impl-Service-for-Rc%3CRefCell%3CS%3E%3E">Rc<RefCell<S>></a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>actix_service</a></p><script>window.sidebarCurrent = {name: 'Service', 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/lib.rs.html#43-77' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>actix_service</a>::<wbr><a class="trait" href=''>Service</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait Service {
|
||
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.Future' class="type">Future</a>: <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Item = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>;
|
||
fn <a href='#tymethod.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.call' class='fnname'>call</a>(&mut self, req: Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a>;
|
||
}</pre></div><div class='docblock'><p>An asynchronous function from <code>Request</code> to a <code>Response</code>.</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.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><Item = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</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.poll_ready' class='method'><code id='poll_ready.v'>fn <a href='#tymethod.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code></h3><div class='docblock'><p>Returns <code>Ready</code> when the service is able to process requests.</p>
|
||
<p>If the service is at capacity, then <code>NotReady</code> is returned and the task
|
||
is notified when the service becomes ready again. This function is
|
||
expected to be called while on a task.</p>
|
||
<p>This is a <strong>best effort</strong> implementation. False positives are permitted.
|
||
It is permitted for the service to return <code>Ready</code> from a <code>poll_ready</code>
|
||
call and the next invocation of <code>call</code> results in an error.</p>
|
||
</div><h3 id='tymethod.call' class='method'><code id='call.v'>fn <a href='#tymethod.call' class='fnname'>call</a>(&mut self, req: Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code></h3><div class='docblock'><p>Process the request and return the response asynchronously.</p>
|
||
<p>This function is expected to be callable off task. As such,
|
||
implementations should take care to not call <code>poll_ready</code>. If the
|
||
service is at capacity and the request is unable to be handled, the
|
||
returned <code>Future</code> should resolve to an error.</p>
|
||
<p>Calling <code>call</code> without calling <code>poll_ready</code> is permitted. The
|
||
implementation must be resilient to this fact.</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-Service-for-%26%27a%20mut%20S' class='impl'><code class='in-band'>impl<'a, S> <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>S <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> + 'a, </span></code><a href='#impl-Service-for-%26%27a%20mut%20S' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#337-353' 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> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::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> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::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> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a></code></h4><h4 id='associatedtype.Future-1' class="type"><code id='Future.t-1'>type <a href='#associatedtype.Future' class="type">Future</a> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code></h4><h4 id='method.poll_ready' class="method hidden"><code id='poll_ready.v-1'>fn <a href='#method.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/lib.rs.html#346-348' title='goto source code'>[src]</a></h4><h4 id='method.call' class="method hidden"><code id='call.v-1'>fn <a href='#method.call' class='fnname'>call</a>(&mut self, request: Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/lib.rs.html#350-352' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-for-Box%3CS%3E' class='impl'><code class='in-band'>impl<S: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>, </span></code><a href='#impl-Service-for-Box%3CS%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#355-371' 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> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::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> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::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> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a></code></h4><h4 id='associatedtype.Future-2' class="type"><code id='Future.t-2'>type <a href='#associatedtype.Future' class="type">Future</a> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code></h4><h4 id='method.poll_ready-1' class="method hidden"><code id='poll_ready.v-2'>fn <a href='#method.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/lib.rs.html#364-366' title='goto source code'>[src]</a></h4><h4 id='method.call-1' class="method hidden"><code id='call.v-2'>fn <a href='#method.call' class='fnname'>call</a>(&mut self, request: Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/lib.rs.html#368-370' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-for-Rc%3CRefCell%3CS%3E%3E' class='impl'><code class='in-band'>impl<S> <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a><S>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>, </span></code><a href='#impl-Service-for-Rc%3CRefCell%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#373-389' 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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a></code></h4><h4 id='associatedtype.Future-3' class="type"><code id='Future.t-3'>type <a href='#associatedtype.Future' class="type">Future</a> = S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code></h4><h4 id='method.poll_ready-2' class="method hidden"><code id='poll_ready.v-3'>fn <a href='#method.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/lib.rs.html#382-384' title='goto source code'>[src]</a></h4><h4 id='method.call-2' class="method hidden"><code id='call.v-3'>fn <a href='#method.call' class='fnname'>call</a>(&mut self, request: Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/lib.rs.html#386-388' 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-Service' class='impl'><code class='in-band'>impl<A, B> Service for <a class="struct" href="../actix_service/struct.AndThen.html" title="struct actix_service::AndThen">AndThen</a><A, B> <span class="where fmt-newline">where<br> A: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>,<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a href='#impl-Service' class='anchor'></a><a class='srclink' href='../src/actix_service/and_then.rs.html#38-60' 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-4' class="type">Request</a> = A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a></code></h4><h4 id='associatedtype.Response-4' class="type"><code id='Response.t-4'>type <a href='#associatedtype.Response-4' class="type">Response</a> = B::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-4' class="type"><code id='Error.t-4'>type <a href='#associatedtype.Error-4' class="type">Error</a> = A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a></code></h4><h4 id='associatedtype.Future-4' class="type"><code id='Future.t-4'>type <a href='#associatedtype.Future-4' class="type">Future</a> = AndThenFuture<A, B></code></h4><h4 id='method.poll_ready-3' class="method hidden"><code id='poll_ready.v-4'>fn <a href='#method.poll_ready-3' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/and_then.rs.html#48-55' title='goto source code'>[src]</a></h4><h4 id='method.call-3' class="method hidden"><code id='call.v-4'>fn <a href='#method.call-3' class='fnname'>call</a>(&mut self, req: A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/and_then.rs.html#57-59' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-1' class='impl'><code class='in-band'>impl<A, B> Service for <a class="struct" href="../actix_service/struct.Then.html" title="struct actix_service::Then">Then</a><A, B> <span class="where fmt-newline">where<br> A: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>,<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, Error = A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a href='#impl-Service-1' class='anchor'></a><a class='srclink' href='../src/actix_service/then.rs.html#38-60' 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-5' class="type">Request</a> = A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a></code></h4><h4 id='associatedtype.Response-5' class="type"><code id='Response.t-5'>type <a href='#associatedtype.Response-5' class="type">Response</a> = B::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-5' class="type"><code id='Error.t-5'>type <a href='#associatedtype.Error-5' class="type">Error</a> = B::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a></code></h4><h4 id='associatedtype.Future-5' class="type"><code id='Future.t-5'>type <a href='#associatedtype.Future-5' class="type">Future</a> = ThenFuture<A, B></code></h4><h4 id='method.poll_ready-4' class="method hidden"><code id='poll_ready.v-5'>fn <a href='#method.poll_ready-4' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/then.rs.html#48-55' title='goto source code'>[src]</a></h4><h4 id='method.call-4' class="method hidden"><code id='call.v-5'>fn <a href='#method.call-4' class='fnname'>call</a>(&mut self, req: A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/then.rs.html#57-59' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-2' class='impl'><code class='in-band'>impl<A, E> Service for <a class="struct" href="../actix_service/struct.FromErr.html" title="struct actix_service::FromErr">FromErr</a><A, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>,<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a href='#impl-Service-2' class='anchor'></a><a class='srclink' href='../src/actix_service/from_err.rs.html#40-60' 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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-6' class="type"><code id='Error.t-6'>type <a href='#associatedtype.Error-6' class="type">Error</a> = E</code></h4><h4 id='associatedtype.Future-6' class="type"><code id='Future.t-6'>type <a href='#associatedtype.Future-6' class="type">Future</a> = FromErrFuture<A, E></code></h4><h4 id='method.poll_ready-5' class="method hidden"><code id='poll_ready.v-6'>fn <a href='#method.poll_ready-5' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, E></code><a class='srclink' href='../src/actix_service/from_err.rs.html#50-52' title='goto source code'>[src]</a></h4><h4 id='method.call-5' class="method hidden"><code id='call.v-6'>fn <a href='#method.call-5' class='fnname'>call</a>(&mut self, req: A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/from_err.rs.html#54-59' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-3' class='impl'><code class='in-band'>impl<A, F, E> Service for <a class="struct" href="../actix_service/struct.MapErr.html" title="struct actix_service::MapErr">MapErr</a><A, F, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>,<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>(A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>) -> E + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-Service-3' class='anchor'></a><a class='srclink' href='../src/actix_service/map_err.rs.html#46-63' 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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a></code></h4><h4 id='associatedtype.Error-7' class="type"><code id='Error.t-7'>type <a href='#associatedtype.Error-7' class="type">Error</a> = E</code></h4><h4 id='associatedtype.Future-7' class="type"><code id='Future.t-7'>type <a href='#associatedtype.Future-7' class="type">Future</a> = MapErrFuture<A, F, E></code></h4><h4 id='method.poll_ready-6' class="method hidden"><code id='poll_ready.v-7'>fn <a href='#method.poll_ready-6' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/map_err.rs.html#56-58' title='goto source code'>[src]</a></h4><h4 id='method.call-6' class="method hidden"><code id='call.v-7'>fn <a href='#method.call-6' class='fnname'>call</a>(&mut self, req: A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/map_err.rs.html#60-62' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-4' class='impl'><code class='in-band'>impl<A, F, Response> Service for <a class="struct" href="../actix_service/struct.Map.html" title="struct actix_service::Map">Map</a><A, F, Response> <span class="where fmt-newline">where<br> A: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>) -> Response + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-Service-4' class='anchor'></a><a class='srclink' href='../src/actix_service/map.rs.html#45-62' 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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</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> = Response</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::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a></code></h4><h4 id='associatedtype.Future-8' class="type"><code id='Future.t-8'>type <a href='#associatedtype.Future-8' class="type">Future</a> = MapFuture<A, F, Response></code></h4><h4 id='method.poll_ready-7' class="method hidden"><code id='poll_ready.v-8'>fn <a href='#method.poll_ready-7' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/map.rs.html#55-57' title='goto source code'>[src]</a></h4><h4 id='method.call-7' class="method hidden"><code id='call.v-8'>fn <a href='#method.call-7' class='fnname'>call</a>(&mut self, req: A::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Request" title="type actix_service::Service::Request">Request</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/map.rs.html#59-61' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-5' class='impl'><code class='in-band'>impl<F, Req, Out> Service for <a class="struct" href="../actix_service/struct.ServiceFn.html" title="struct actix_service::ServiceFn">ServiceFn</a><F, Req, Out> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Req) -> Out,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>, </span></code><a href='#impl-Service-5' class='anchor'></a><a class='srclink' href='../src/actix_service/fn_service.rs.html#68-85' 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> = Req</code></h4><h4 id='associatedtype.Response-9' class="type"><code id='Response.t-9'>type <a href='#associatedtype.Response-9' class="type">Response</a> = Out::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a></code></h4><h4 id='associatedtype.Error-9' class="type"><code id='Error.t-9'>type <a href='#associatedtype.Error-9' class="type">Error</a> = Out::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a></code></h4><h4 id='associatedtype.Future-9' class="type"><code id='Future.t-9'>type <a href='#associatedtype.Future-9' class="type">Future</a> = Out::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code></h4><h4 id='method.poll_ready-8' class="method hidden"><code id='poll_ready.v-9'>fn <a href='#method.poll_ready-8' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/fn_service.rs.html#78-80' title='goto source code'>[src]</a></h4><h4 id='method.call-8' class="method hidden"><code id='call.v-9'>fn <a href='#method.call-8' class='fnname'>call</a>(&mut self, req: Req) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/fn_service.rs.html#82-84' title='goto source code'>[src]</a></h4></div><h3 id='impl-Service-6' class='impl'><code class='in-band'>impl<R, E> Service for <a class="struct" href="../actix_service/blank/struct.Blank.html" title="struct actix_service::blank::Blank">Blank</a><R, E></code><a href='#impl-Service-6' class='anchor'></a><a class='srclink' href='../src/actix_service/blank.rs.html#33-46' 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> = R</code></h4><h4 id='associatedtype.Response-10' class="type"><code id='Response.t-10'>type <a href='#associatedtype.Response-10' class="type">Response</a> = R</code></h4><h4 id='associatedtype.Error-10' class="type"><code id='Error.t-10'>type <a href='#associatedtype.Error-10' class="type">Error</a> = E</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><R, E></code></h4><h4 id='method.poll_ready-9' class="method hidden"><code id='poll_ready.v-10'>fn <a href='#method.poll_ready-9' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_service/blank.rs.html#39-41' title='goto source code'>[src]</a></h4><h4 id='method.call-9' class="method hidden"><code id='call.v-10'>fn <a href='#method.call-9' class='fnname'>call</a>(&mut self, req: R) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_service/blank.rs.html#43-45' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/actix_service/trait.Service.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_service";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |