Struct actix_net::inflight::InFlightService [−][src]
pub struct InFlightService<T> { /* fields omitted */ }Methods
impl<T: Service> InFlightService<T>[src]
impl<T: Service> InFlightService<T>pub fn new<F: IntoService<T>>(service: F) -> Self[src]
pub fn new<F: IntoService<T>>(service: F) -> Selfpub fn with_max_inflight<F: IntoService<T>>(max: usize, service: F) -> Self[src]
pub fn with_max_inflight<F: IntoService<T>>(max: usize, service: F) -> SelfTrait Implementations
impl<T: Service> Service for InFlightService<T>[src]
impl<T: Service> Service for InFlightService<T>type Request = T::Request
Requests handled by the service.
type Response = T::Response
Responses given by the service.
type Error = T::Error
Errors produced by the service.
type Future = InFlightServiceResponse<T>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, req: Self::Request) -> Self::Future[src]
fn call(&mut self, req: Self::Request) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.
Auto Trait Implementations
impl<T> !Send for InFlightService<T>
impl<T> !Send for InFlightService<T>impl<T> !Sync for InFlightService<T>
impl<T> !Sync for InFlightService<T>