[][src]Struct actix_service::dev::AndThenApplyFn

pub struct AndThenApplyFn<A, B, F, Fut, Res, Err> where
    A: Service,
    B: Service,
    F: FnMut(A::Response, &mut B) -> Fut,
    Fut: Future<Output = Result<Res, Err>>,
    Err: From<A::Error> + From<B::Error>, 
{ /* fields omitted */ }

Apply service combinator

Trait Implementations

impl<A, B, F, Fut, Res, Err> Clone for AndThenApplyFn<A, B, F, Fut, Res, Err> where
    A: Service + Clone,
    B: Service,
    F: FnMut(A::Response, &mut B) -> Fut,
    Fut: Future<Output = Result<Res, Err>>,
    Err: From<A::Error> + From<B::Error>, 
[src]

impl<A, B, F, Fut, Res, Err> Service for AndThenApplyFn<A, B, F, Fut, Res, Err> where
    A: Service,
    B: Service,
    F: FnMut(A::Response, &mut B) -> Fut,
    Fut: Future<Output = Result<Res, Err>>,
    Err: From<A::Error> + From<B::Error>, 
[src]

type Request = A::Request

Requests handled by the service.

type Response = Res

Responses given by the service.

type Error = Err

Errors produced by the service.

type Future = AndThenApplyFnFuture<A, B, F, Fut, Res, Err>

The future response value.

Auto Trait Implementations

impl<A, B, F, Fut, Res, Err> !RefUnwindSafe for AndThenApplyFn<A, B, F, Fut, Res, Err>

impl<A, B, F, Fut, Res, Err> !Send for AndThenApplyFn<A, B, F, Fut, Res, Err>

impl<A, B, F, Fut, Res, Err> !Sync for AndThenApplyFn<A, B, F, Fut, Res, Err>

impl<A, B, F, Fut, Res, Err> Unpin for AndThenApplyFn<A, B, F, Fut, Res, Err> where
    A: Unpin,
    Err: Unpin,
    Fut: Unpin,
    Res: Unpin

impl<A, B, F, Fut, Res, Err> !UnwindSafe for AndThenApplyFn<A, B, F, Fut, Res, Err>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoService<T> for T where
    T: Service
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.