Struct ntex::util::inflight::InFlightService
source · pub struct InFlightService<S> { /* private fields */ }
Implementations§
source§impl<S> InFlightService<S>
impl<S> InFlightService<S>
pub fn new<R>(max: usize, service: S) -> InFlightService<S>where
S: Service<R>,
Trait Implementations§
source§impl<S> Debug for InFlightService<S>where
S: Debug,
impl<S> Debug for InFlightService<S>where
S: Debug,
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.
source§async fn ready(
&self,
ctx: ServiceCtx<'_, InFlightService<T>>
) -> Result<(), <InFlightService<T> as Service<R>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, InFlightService<T>> ) -> Result<(), <InFlightService<T> as Service<R>>::Error>
Returns when the service is able to process requests. Read more
source§async fn call(
&self,
req: R,
ctx: ServiceCtx<'_, InFlightService<T>>
) -> Result<<InFlightService<T> as Service<R>>::Response, <InFlightService<T> as Service<R>>::Error>
async fn call( &self, req: R, ctx: ServiceCtx<'_, InFlightService<T>> ) -> Result<<InFlightService<T> as Service<R>>::Response, <InFlightService<T> as Service<R>>::Error>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<S> Freeze for InFlightService<S>where
S: Freeze,
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<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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