Struct actix_net::service::ApplyNewService[][src]

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

ApplyNewService new service combinator

Methods

impl<T, F, R, Req> ApplyNewService<T, F, R, Req> where
    T: NewService,
    F: Fn(Req, &mut T::Service) -> R,
    R: IntoFuture
[src]

Create new ApplyNewService new service instance

Trait Implementations

impl<T, F, R, Req> Clone for ApplyNewService<T, F, R, Req> where
    T: NewService + Clone,
    F: Fn(Req, &mut T::Service) -> 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> NewService for ApplyNewService<T, F, R, Req> where
    T: NewService,
    T::Error: Into<<R::Future as Future>::Error>,
    F: Fn(Req, &mut T::Service) -> R + Clone,
    R: IntoFuture
[src]

Requests handled by the service

Responses given by the service

Errors produced by the service

The Service value created by this factory

Errors produced while building a service.

The future of the Service instance.

Create and return a new service value asynchronously.

Auto Trait Implementations

impl<T, F, R, Req> !Send for ApplyNewService<T, F, R, Req>

impl<T, F, R, Req> !Sync for ApplyNewService<T, F, R, Req>