Struct actix_net::service::AndThen [−][src]
pub struct AndThen<A, B> { /* fields omitted */ }
Service for the and_then
combinator, chaining a computation onto the end
of another service which completes successfully.
This is created by the ServiceExt::and_then
method.
Methods
impl<A, B> AndThen<A, B> where
A: Service,
B: Service<Request = A::Response, Error = A::Error>,
[src]
impl<A, B> AndThen<A, B> where
A: Service,
B: Service<Request = A::Response, Error = A::Error>,
Trait Implementations
impl<A, B> Clone for AndThen<A, B> where
A: Service + Clone,
B: Service<Request = A::Response, Error = A::Error>,
[src]
impl<A, B> Clone for AndThen<A, B> where
A: Service + Clone,
B: Service<Request = A::Response, Error = A::Error>,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<A, B> Service for AndThen<A, B> where
A: Service,
B: Service<Request = A::Response, Error = A::Error>,
[src]
impl<A, B> Service for AndThen<A, B> where
A: Service,
B: Service<Request = A::Response, Error = A::Error>,
type Request = A::Request
Requests handled by the service.
type Response = B::Response
Responses given by the service.
type Error = A::Error
Errors produced by the service.
type Future = AndThenFuture<A, B>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>
Returns Ready
when the service is able to process requests. Read more
fn call(&mut self, req: Self::Request) -> Self::Future
[src]
fn call(&mut self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>
[src]
fn ready(self) -> Ready<Self>
A future yielding the service when it is ready to accept a request.