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>>,{ /* private fields */ }Expand description
apply() service factory
Trait Implementations§
Source§impl<T, F, R, In, Out, Err> Clone for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> Clone for ApplyServiceFactory<T, F, R, In, Out, Err>
Source§impl<T, F, R, In, Out, Err> ServiceFactory for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> ServiceFactory for ApplyServiceFactory<T, F, R, In, Out, Err>
Source§type Config = <T as ServiceFactory>::Config
type Config = <T as ServiceFactory>::Config
Service factory configuration
Source§type Service = Apply<<T as ServiceFactory>::Service, F, R, In, Out, Err>
type Service = Apply<<T as ServiceFactory>::Service, F, R, In, Out, Err>
The
Service value created by this factorySource§type InitError = <T as ServiceFactory>::InitError
type InitError = <T as ServiceFactory>::InitError
Errors produced while building a service.
Source§type Future = ApplyServiceFactoryResponse<T, F, R, In, Out, Err>
type Future = ApplyServiceFactoryResponse<T, F, R, In, Out, Err>
The future of the
Service instance.Source§fn new_service(&self, cfg: T::Config) -> Self::Future
fn new_service(&self, cfg: T::Config) -> Self::Future
Create and return a new service value asynchronously.
Source§fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
Map this service’s output to a different type, returning a new service
of the resulting type.
Source§fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
Map this service’s error to a different error, returning a new service.
Source§fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations§
impl<T, F, R, In, Out, Err> Freeze for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> RefUnwindSafe for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> Send for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> Sync for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> Unpin for ApplyServiceFactory<T, F, R, In, Out, Err>
impl<T, F, R, In, Out, Err> UnwindSafe for ApplyServiceFactory<T, F, R, In, Out, Err>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
Source§fn into_factory(self) -> T
fn into_factory(self) -> T
Convert
Self to a ServiceFactory