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]

Create new AndThen combinator

Trait Implementations

impl<A, B> Clone for AndThen<A, B> where
    A: Service + Clone,
    B: Service<Request = A::Response, Error = A::Error>, 
[src]

Returns a copy of the value. Read more

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]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Returns Ready when the service is able to process requests. Read more

Process the request and return the response asynchronously. Read more

A future yielding the service when it is ready to accept a request.

Auto Trait Implementations

impl<A, B> !Send for AndThen<A, B>

impl<A, B> !Sync for AndThen<A, B>