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::Service>,
T::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::Service>,
T::Service: Service<R>,
type Future = ApplyTransformFuture<T, S, R, C>
type Future = ApplyTransformFuture<T, S, R, C>
The future of the ServiceFactory instance.
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
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, 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, 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
