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]
impl<T, F, R, Req> ApplyNewService<T, F, R, Req> where
T: NewService,
F: Fn(Req, &mut T::Service) -> R,
R: IntoFuture, pub fn new<F1: IntoNewService<T>>(service: F1, f: F) -> Self[src]
pub fn new<F1: IntoNewService<T>>(service: F1, f: F) -> SelfCreate 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]
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, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]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]
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, type Request = Req
Requests handled by the service
type Response = <R::Future as Future>::Item
Responses given by the service
type Error = <R::Future as Future>::Error
Errors produced by the service
type Service = Apply<T::Service, F, R, Req>
The Service value created by this factory
type InitError = T::InitError
Errors produced while building a service.
type Future = ApplyNewServiceFuture<T, F, R, Req>
The future of the Service instance.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate 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> !Send for ApplyNewService<T, F, R, Req>impl<T, F, R, Req> !Sync for ApplyNewService<T, F, R, Req>
impl<T, F, R, Req> !Sync for ApplyNewService<T, F, R, Req>