Struct ntex_service::dev::ApplyTransform
source · [−]pub struct ApplyTransform<T, S, R, C>(_, _);Expand description
Apply transform to new service
Trait Implementations
sourceimpl<T, S, R, C> Clone for ApplyTransform<T, S, R, C>
impl<T, S, R, C> Clone for ApplyTransform<T, S, R, C>
sourceimpl<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 Response = <<T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service as Service<R>>::Response
type Response = <<T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service as Service<R>>::Response
Responses given by the service
type Error = <<T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service as Service<R>>::Error
type Error = <<T as Transform<<S as ServiceFactory<R, C>>::Service>>::Service as Service<R>>::Error
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.
sourcefn new_service(&self, cfg: C) -> Self::Future
fn new_service(&self, cfg: C) -> Self::Future
Create and return a new service value asynchronously.
sourcefn map<F, Res>(self, f: F) -> MapServiceFactory<Self, F, Req, Res, Cfg> where
Self: Sized,
F: FnMut(Self::Response) -> Res + Clone,
fn map<F, Res>(self, f: F) -> MapServiceFactory<Self, F, Req, Res, Cfg> where
Self: Sized,
F: FnMut(Self::Response) -> Res + Clone,
Map this service’s output to a different type, returning a new service of the resulting type. Read more
sourcefn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, Req, Cfg, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, Req, Cfg, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
Map this service’s error to a different error, returning a new service.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for T where
T: ServiceFactory<Req, Cfg>,
impl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for T where
T: ServiceFactory<Req, Cfg>,
sourcefn into_factory(self) -> T
fn into_factory(self) -> T
Convert Self to a ServiceFactory