Struct ntex_service::dev::AndThen
source · pub struct AndThen<A, B> { /* private fields */ }Expand description
Service for the and_then combinator, chaining a computation onto the end
of another service which completes successfully.
This is created by the ServiceExt::and_then method.
Trait Implementations§
source§impl<A, B, Req> Service<Req> for AndThen<A, B>where
A: Service<Req>,
B: Service<A::Response, Error = A::Error>,
impl<A, B, Req> Service<Req> for AndThen<A, B>where
A: Service<Req>,
B: Service<A::Response, Error = A::Error>,
§type Response = <B as Service<<A as Service<Req>>::Response>>::Response
type Response = <B as Service<<A as Service<Req>>::Response>>::Response
Responses given by the service.
§type Error = <A as Service<Req>>::Error
type Error = <A as Service<Req>>::Error
Errors produced by the service when polling readiness or executing call.
§type Future<'f>
where
Self: 'f,
Req: 'f = AndThenServiceResponse<'f, A, B, Req>
type Future<'f>
where
Self: 'f,
Req: 'f = AndThenServiceResponse<'f, A, B, Req>
The future response value.
source§fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moresource§fn call(&self, req: Req) -> Self::Future<'_>
fn call(&self, req: Req) -> Self::Future<'_>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<A, B> RefUnwindSafe for AndThen<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for AndThen<A, B>where
A: Send,
B: Send,
impl<A, B> Sync for AndThen<A, B>where
A: Sync,
B: Sync,
impl<A, B> Unpin for AndThen<A, B>where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for AndThen<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service