pub struct InFlightService<S> { /* private fields */ }Implementations
sourceimpl<S> InFlightService<S>
impl<S> InFlightService<S>
pub fn new<U, R>(max: usize, service: U) -> Self where
S: Service<R>,
U: IntoService<S, R>,
Trait Implementations
sourceimpl<T, R> Service<R> for InFlightService<T> where
T: Service<R>,
impl<T, R> Service<R> for InFlightService<T> where
T: Service<R>,
type Future = InFlightServiceResponse<T, R>
type Future = InFlightServiceResponse<T, 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<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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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>,
sourcepub fn into_service(self) -> T
pub fn into_service(self) -> T
Convert to a Service