Struct actix_service::dev::ApplyTransform [−][src]
pub struct ApplyTransform<T, S>(_);
Expand description
Apply
transform to new service
Trait Implementations
impl<T, S> ServiceFactory for ApplyTransform<T, S> where
S: ServiceFactory,
T: Transform<S::Service, InitError = S::InitError>,
impl<T, S> ServiceFactory for ApplyTransform<T, S> where
S: ServiceFactory,
T: Transform<S::Service, InitError = S::InitError>,
type Future = ApplyTransformFuture<T, S>
type Future = ApplyTransformFuture<T, S>
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, S> RefUnwindSafe for ApplyTransform<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> !Send for ApplyTransform<T, S>
impl<T, S> !Sync for ApplyTransform<T, S>
impl<T, S> Unpin for ApplyTransform<T, S>
impl<T, S> UnwindSafe for ApplyTransform<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory