[−][src]Struct actix_service::dev::AndThenApplyFnFactory
AndThenApplyFn
service factory
Trait Implementations
impl<A, B, F, Fut, Res, Err> Clone for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: Clone,
B: Clone,
F: Clone,
[src]
A: Clone,
B: Clone,
F: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A, B, F, Fut, Res, Err> ServiceFactory for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: ServiceFactory,
A::Config: Clone,
B: ServiceFactory<Config = A::Config, InitError = A::InitError>,
F: FnMut(A::Response, &mut B::Service) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
Err: From<A::Error> + From<B::Error>,
[src]
A: ServiceFactory,
A::Config: Clone,
B: ServiceFactory<Config = A::Config, InitError = A::InitError>,
F: FnMut(A::Response, &mut B::Service) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
Err: From<A::Error> + From<B::Error>,
type Request = A::Request
Requests handled by the service.
type Response = Res
Responses given by the service
type Error = Err
Errors produced by the service
type Service = AndThenApplyFn<A::Service, B::Service, F, Fut, Res, Err>
The Service
value created by this factory
type Config = A::Config
Service factory configuration
type InitError = A::InitError
Errors produced while building a service.
type Future = AndThenApplyFnFactoryResponse<A, B, F, Fut, Res, Err>
The future of the Service
instance.
fn new_service(&self, cfg: A::Config) -> Self::Future
[src]
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
Self: Sized,
F: FnMut(Self::Response) -> R + Clone,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R + Clone,
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
Auto Trait Implementations
impl<A, B, F, Fut, Res, Err> RefUnwindSafe for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: RefUnwindSafe,
B: RefUnwindSafe,
Err: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
Res: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
Err: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
Res: RefUnwindSafe,
impl<A, B, F, Fut, Res, Err> Send for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: Send,
B: Send,
Err: Send,
F: Send,
Fut: Send,
Res: Send,
A: Send,
B: Send,
Err: Send,
F: Send,
Fut: Send,
Res: Send,
impl<A, B, F, Fut, Res, Err> Sync for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: Sync,
B: Sync,
Err: Sync,
F: Sync,
Fut: Sync,
Res: Sync,
A: Sync,
B: Sync,
Err: Sync,
F: Sync,
Fut: Sync,
Res: Sync,
impl<A, B, F, Fut, Res, Err> Unpin for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: Unpin,
B: Unpin,
Err: Unpin,
F: Unpin,
Fut: Unpin,
Res: Unpin,
A: Unpin,
B: Unpin,
Err: Unpin,
F: Unpin,
Fut: Unpin,
Res: Unpin,
impl<A, B, F, Fut, Res, Err> UnwindSafe for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
A: UnwindSafe,
B: UnwindSafe,
Err: UnwindSafe,
F: UnwindSafe,
Fut: UnwindSafe,
Res: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
Err: UnwindSafe,
F: UnwindSafe,
Fut: UnwindSafe,
Res: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]
T: ServiceFactory,
fn into_factory(Self) -> T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,