[][src]Struct actix_service::dev::Apply

pub struct Apply<S, F, Req, In, Res, Err> where
    S: Service<In, Error = Err>, 
{ /* fields omitted */ }

Apply service combinator.

The In and Out type params refer to the request and response types for the wrapped service.

Trait Implementations

impl<S, F, Fut, Req, In, Res, Err> Clone for Apply<S, F, Req, In, Res, Err> where
    S: Service<In, Error = Err> + Clone,
    F: FnMut(Req, &mut S) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

impl<S, F, Fut, Req, In, Res, Err> Service<Req> for Apply<S, F, Req, In, Res, Err> where
    S: Service<In, Error = Err>,
    F: FnMut(Req, &mut S) -> Fut,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

type Response = Res

Responses given by the service.

type Error = Err

Errors produced by the service when polling readiness or executing call.

type Future = Fut

The future response value.

Auto Trait Implementations

impl<S, F, Req, In, Res, Err> Send for Apply<S, F, Req, In, Res, Err> where
    Err: Send,
    F: Send,
    In: Send,
    Req: Send,
    Res: Send,
    S: Send
[src]

impl<S, F, Req, In, Res, Err> Sync for Apply<S, F, Req, In, Res, Err> where
    Err: Sync,
    F: Sync,
    In: Sync,
    Req: Sync,
    Res: Sync,
    S: Sync
[src]

impl<S, F, Req, In, Res, Err> Unpin for Apply<S, F, Req, In, Res, Err> where
    Err: Unpin,
    F: Unpin,
    In: Unpin,
    Req: Unpin,
    Res: Unpin,
    S: Unpin
[src]

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<S, Req> IntoService<S, Req> for S where
    S: Service<Req>, 
[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.