Struct ntex::service::dev::ApplyTransform [−][src]
pub struct ApplyTransform<T, S, R, C>(_, _);
Expand description
Apply
transform to new service
Trait Implementations
impl<T, S, R, C> ServiceFactory<R, C> for ApplyTransform<T, S, R, C> where
S: ServiceFactory<R, C>,
T: Transform<<S as ServiceFactory<R, C>>::Service>,
<T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service: Service<R>,
impl<T, S, R, C> ServiceFactory<R, C> for ApplyTransform<T, S, R, C> where
S: ServiceFactory<R, C>,
T: Transform<<S as ServiceFactory<R, C>>::Service>,
<T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service: Service<R>,
Responses given by the service
Errors produced by the service
type Service = <T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service
type Service = <T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service
The Service
value created by this factory
type InitError = <S as ServiceFactory<R, C>>::InitError
type InitError = <S as ServiceFactory<R, C>>::InitError
Errors produced while building a service.
type Future = ApplyTransformFuture<T, S, R, C>
type Future = ApplyTransformFuture<T, S, R, C>
The future of the ServiceFactory
instance.
pub fn new_service(
&self,
cfg: C
) -> <ApplyTransform<T, S, R, C> as ServiceFactory<R, C>>::Future
pub fn new_service(
&self,
cfg: C
) -> <ApplyTransform<T, S, R, C> as ServiceFactory<R, C>>::Future
Create and return a new service value 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, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
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, S, R, C> RefUnwindSafe for ApplyTransform<T, S, R, C> where
C: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S, R, C> !Send for ApplyTransform<T, S, R, C>
impl<T, S, R, C> !Sync for ApplyTransform<T, S, R, C>
impl<T, S, R, C> Unpin for ApplyTransform<T, S, R, C> where
C: Unpin,
R: Unpin,
impl<T, S, R, C> UnwindSafe for ApplyTransform<T, S, R, C> where
C: UnwindSafe,
R: UnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more