Struct actix_net::inflight::InFlight [−][src]
pub struct InFlight<T> { /* fields omitted */ }
InFlight - new service for service that can limit number of in-flight async requests.
Default number of in-flight requests is 15
Methods
impl<T> InFlight<T> where
T: NewService,
[src]
impl<T> InFlight<T> where
T: NewService,
pub fn new<F: IntoNewService<T>>(factory: F) -> Self
[src]
pub fn new<F: IntoNewService<T>>(factory: F) -> Self
pub fn max_inflight(self, max: usize) -> Self
[src]
pub fn max_inflight(self, max: usize) -> Self
Set max number of in-flight requests.
By default max in-flight requests is 15.
Trait Implementations
impl<T> NewService for InFlight<T> where
T: NewService,
[src]
impl<T> NewService for InFlight<T> where
T: NewService,
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 InitError = T::InitError
Errors produced while building a service.
type Service = InFlightService<T::Service>
The Service
value created by this factory
type Future = InFlightResponseFuture<T>
The future of the Service
instance.
fn new_service(&self) -> Self::Future
[src]
fn new_service(&self) -> Self::Future
Create and return a new service value asynchronously.