Struct ntex_service::dev::Then
source · [−]pub struct Then<A, B, R>(_, _);Expand description
Service for the then combinator, chaining a computation onto the end of
another service.
This is created by the Pipeline::then method.
Trait Implementations
sourceimpl<A, B, R> Service<R> for Then<A, B, R> where
A: Service<R>,
B: Service<Result<A::Response, A::Error>, Error = A::Error>,
impl<A, B, R> Service<R> for Then<A, B, R> where
A: Service<R>,
B: Service<Result<A::Response, A::Error>, Error = A::Error>,
type Response = <B as Service<Result<<A as Service<R>>::Response, <A as Service<R>>::Error>>>::Response
type Response = <B as Service<Result<<A as Service<R>>::Response, <A as Service<R>>::Error>>>::Response
Responses given by the service.
type Error = <B as Service<Result<<A as Service<R>>::Response, <A as Service<R>>::Error>>>::Error
type Error = <B as Service<Result<<A as Service<R>>::Response, <A as Service<R>>::Error>>>::Error
Errors produced by the service.
type Future = ThenServiceResponse<A, B, R>
type Future = ThenServiceResponse<A, B, R>
The future response value.
sourcefn 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 more
sourcefn poll_shutdown(&self, cx: &mut Context<'_>, is_error: bool) -> Poll<()>
fn poll_shutdown(&self, cx: &mut Context<'_>, is_error: bool) -> Poll<()>
Shutdown service. Read more
sourcefn call(&self, req: R) -> Self::Future
fn call(&self, req: R) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations
impl<A, B, R> RefUnwindSafe for Then<A, B, R> where
A: RefUnwindSafe,
B: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, B, R> !Send for Then<A, B, R>
impl<A, B, R> !Sync for Then<A, B, R>
impl<A, B, R> Unpin for Then<A, B, R> where
R: Unpin,
impl<A, B, R> UnwindSafe for Then<A, B, R> where
A: RefUnwindSafe,
B: RefUnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, Req> IntoService<T, Req> for T where
T: Service<Req>,
impl<T, Req> IntoService<T, Req> for T where
T: Service<Req>,
sourcefn into_service(self) -> T
fn into_service(self) -> T
Convert to a Service