Struct ntex_util::services::inflight::InFlightService
source · pub struct InFlightService<S> { /* private fields */ }Implementations§
source§impl<S> InFlightService<S>
impl<S> InFlightService<S>
pub fn new<U, R>(max: usize, service: U) -> Selfwhere S: Service<R>, U: IntoService<S, R>,
Trait Implementations§
source§impl<T, R> Service<R> for InFlightService<T>where
T: Service<R>,
impl<T, R> Service<R> for InFlightService<T>where T: Service<R>,
§type Error = <T as Service<R>>::Error
type Error = <T as Service<R>>::Error
Errors produced by the service when polling readiness or executing call.
§type Future<'f>
where
Self: 'f,
R: 'f = InFlightServiceResponse<'f, T, R>
type Future<'f> where Self: 'f, R: 'f = InFlightServiceResponse<'f, T, R>
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: R) -> Self::Future<'_>
fn call(&self, req: R) -> Self::Future<'_>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<S> !RefUnwindSafe for InFlightService<S>
impl<S> !Send for InFlightService<S>
impl<S> !Sync for InFlightService<S>
impl<S> Unpin for InFlightService<S>where S: Unpin,
impl<S> !UnwindSafe for InFlightService<S>
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