Struct actix_service::dev::ApplyServiceFactory [−][src]
pub struct ApplyServiceFactory<T, F, R, In, Out, Err> where
T: ServiceFactory<Error = Err>,
F: FnMut(In, &mut T::Service) -> R + Clone,
R: Future<Output = Result<Out, Err>>, { /* fields omitted */ }
Expand description
apply()
service factory
Trait Implementations
impl<T, F, R, In, Out, Err> Clone for ApplyServiceFactory<T, F, R, In, Out, Err> where
T: ServiceFactory<Error = Err> + Clone,
F: FnMut(In, &mut T::Service) -> R + Clone,
R: Future<Output = Result<Out, Err>>,
impl<T, F, R, In, Out, Err> Clone for ApplyServiceFactory<T, F, R, In, Out, Err> where
T: ServiceFactory<Error = Err> + Clone,
F: FnMut(In, &mut T::Service) -> R + Clone,
R: Future<Output = Result<Out, Err>>,
impl<T, F, R, In, Out, Err> ServiceFactory for ApplyServiceFactory<T, F, R, In, Out, Err> where
T: ServiceFactory<Error = Err>,
F: FnMut(In, &mut T::Service) -> R + Clone,
R: Future<Output = Result<Out, Err>>,
impl<T, F, R, In, Out, Err> ServiceFactory for ApplyServiceFactory<T, F, R, In, Out, Err> where
T: ServiceFactory<Error = Err>,
F: FnMut(In, &mut T::Service) -> R + Clone,
R: Future<Output = Result<Out, Err>>,
type Request = In
type Request = In
Requests handled by the created services.
type Response = Out
type Response = Out
Responses given by the created services.
type Error = Err
type Error = Err
Errors produced by the created services.
type Future = ApplyServiceFactoryResponse<T, F, R, In, Out, Err>
type Future = ApplyServiceFactoryResponse<T, F, R, In, Out, Err>
The future of the Service
instance.
Create and return a new service asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<T, F, R, In, Out, Err> RefUnwindSafe for ApplyServiceFactory<T, F, R, In, Out, Err> where
F: RefUnwindSafe,
In: RefUnwindSafe,
Out: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F, R, In, Out, Err> Send for ApplyServiceFactory<T, F, R, In, Out, Err> where
F: Send,
In: Send,
Out: Send,
R: Send,
T: Send,
impl<T, F, R, In, Out, Err> Sync for ApplyServiceFactory<T, F, R, In, Out, Err> where
F: Sync,
In: Sync,
Out: Sync,
R: Sync,
T: Sync,
impl<T, F, R, In, Out, Err> Unpin for ApplyServiceFactory<T, F, R, In, Out, Err> where
F: Unpin,
In: Unpin,
Out: Unpin,
R: Unpin,
T: Unpin,
impl<T, F, R, In, Out, Err> UnwindSafe for ApplyServiceFactory<T, F, R, In, Out, Err> where
F: UnwindSafe,
In: UnwindSafe,
Out: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory