Struct ntex_service::dev::AndThen
source · [−]pub struct AndThen<A, B, Req>(_, _);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
sourceimpl<A, B, Req> Service<Req> for AndThen<A, B, Req> where
A: Service<Req>,
B: Service<A::Response, Error = A::Error>,
impl<A, B, Req> Service<Req> for AndThen<A, B, Req> 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 Future = AndThenServiceResponse<A, B, Req>
type Future = AndThenServiceResponse<A, B, Req>
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: 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, Req> RefUnwindSafe for AndThen<A, B, Req> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B, Req> !Send for AndThen<A, B, Req>
impl<A, B, Req> !Sync for AndThen<A, B, Req>
impl<A, B, Req> Unpin for AndThen<A, B, Req>
impl<A, B, Req> UnwindSafe for AndThen<A, B, Req> where
A: RefUnwindSafe,
B: RefUnwindSafe,
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