Struct ntex::service::dev::ApplyTransform [−][src]
pub struct ApplyTransform<T, S>(_);
Expand description
Apply
transform to new service
Trait Implementations
impl<T, S> Clone for ApplyTransform<T, S>
[src]
impl<T, S> Clone for ApplyTransform<T, S>
[src]pub fn clone(&self) -> ApplyTransform<T, S>
[src]
pub fn clone(&self) -> ApplyTransform<T, S>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T, S> ServiceFactory for ApplyTransform<T, S> where
T: Transform<<S as ServiceFactory>::Service, InitError = <S as ServiceFactory>::InitError>,
S: ServiceFactory,
[src]
impl<T, S> ServiceFactory for ApplyTransform<T, S> where
T: Transform<<S as ServiceFactory>::Service, InitError = <S as ServiceFactory>::InitError>,
S: ServiceFactory,
[src]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.
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
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
type Config = <S as ServiceFactory>::Config
type Config = <S as ServiceFactory>::Config
Service factory configuration
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 factory
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.
type Future = ApplyTransformFuture<T, S>
type Future = ApplyTransformFuture<T, S>
The future of the ServiceFactory
instance.
pub fn new_service(
&self,
cfg: <S as ServiceFactory>::Config
) -> <ApplyTransform<T, S> as ServiceFactory>::Future
[src]
pub fn new_service(
&self,
cfg: <S as ServiceFactory>::Config
) -> <ApplyTransform<T, S> as ServiceFactory>::Future
[src]Create and return a new service value asynchronously.
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
F: FnMut(Self::Response) -> R + Clone,
[src]
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
F: FnMut(Self::Response) -> R + Clone,
[src]Map this service’s output to a different type, returning a new service of the resulting type. Read more
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
F: Fn(Self::Error) -> E + Clone,
[src]
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
F: Fn(Self::Error) -> E + Clone,
[src]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
F: Fn(Self::InitError) -> E + Clone,
[src]
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
[src]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>
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,
S: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]pub fn into_factory(self) -> T
[src]
pub fn into_factory(self) -> T
[src]Convert Self
to a ServiceFactory
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more