Struct actix_net::service::Apply[][src]

pub struct Apply<T, F, R, Req> { /* fields omitted */ }

Apply service combinator

Methods

impl<T, F, R, Req> Apply<T, F, R, Req> where
    T: Service,
    T::Error: Into<<R::Future as Future>::Error>,
    F: Fn(Req, &mut T) -> R,
    R: IntoFuture
[src]

Create new Apply combinator

Trait Implementations

impl<T, F, R, Req> Clone for Apply<T, F, R, Req> where
    T: Service + Clone,
    T::Error: Into<<R::Future as Future>::Error>,
    F: Fn(Req, &mut T) -> R + Clone,
    R: IntoFuture
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, F, R, Req> Service for Apply<T, F, R, Req> where
    T: Service,
    T::Error: Into<<R::Future as Future>::Error>,
    F: Fn(Req, &mut T) -> R,
    R: IntoFuture
[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<T, F, R, Req> Send for Apply<T, F, R, Req> where
    F: Send,
    R: Send,
    Req: Send,
    T: Send

impl<T, F, R, Req> Sync for Apply<T, F, R, Req> where
    F: Sync,
    R: Sync,
    Req: Sync,
    T: Sync