pub struct ApplyTransform<T, S>(/* private fields */);Expand description
Apply transform to new service
Trait Implementations§
Source§impl<T, S> Clone for ApplyTransform<T, S>
impl<T, S> Clone for ApplyTransform<T, S>
Source§impl<T, S> ServiceFactory for ApplyTransform<T, S>
impl<T, S> ServiceFactory for ApplyTransform<T, S>
Source§type Request = <T as Transform<<S as ServiceFactory>::Service>>::Request
type Request = <T as Transform<<S as ServiceFactory>::Service>>::Request
Requests handled by the service.
Source§type Response = <T as Transform<<S as ServiceFactory>::Service>>::Response
type Response = <T as Transform<<S as ServiceFactory>::Service>>::Response
Responses given by the service
Source§type Error = <T as Transform<<S as ServiceFactory>::Service>>::Error
type Error = <T as Transform<<S as ServiceFactory>::Service>>::Error
Errors produced by the service
Source§type Config = <S as ServiceFactory>::Config
type Config = <S as ServiceFactory>::Config
Service factory configuration
Source§type Service = <T as Transform<<S as ServiceFactory>::Service>>::Transform
type Service = <T as Transform<<S as ServiceFactory>::Service>>::Transform
The
Service value created by this factorySource§type InitError = <T as Transform<<S as ServiceFactory>::Service>>::InitError
type InitError = <T as Transform<<S as ServiceFactory>::Service>>::InitError
Errors produced while building a service.
Source§fn new_service(&self, cfg: S::Config) -> Self::Future
fn new_service(&self, cfg: S::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, S> Freeze for ApplyTransform<T, S>
impl<T, S> RefUnwindSafe for ApplyTransform<T, S>where
T: RefUnwindSafe,
S: 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
T: RefUnwindSafe,
S: RefUnwindSafe,
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