pub struct InFlight { /* private fields */ }Expand description
Middleware that limits the number of concurrent calls to a service.
Readiness remains pending while every slot is in use. The default limit is 15 concurrent calls.
Implementations§
Trait Implementations§
impl Copy for InFlight
Source§impl<S, St> Middleware<S, St> for InFlight
impl<S, St> Middleware<S, St> for InFlight
Source§type Service = InFlightService<S>
type Service = InFlightService<S>
Service created by this middleware.
Source§fn create(&self, _: &St, service: S) -> <InFlight as Middleware<S, St>>::Service
fn create(&self, _: &St, service: S) -> <InFlight as Middleware<S, St>>::Service
Creates and returns a new middleware service.
Source§fn apply_to<Sf, Req>(
self,
factory: Sf,
) -> ServiceChainFactory<ApplyMiddleware<Self, Sf>, St, Req>
fn apply_to<Sf, Req>( self, factory: Sf, ) -> ServiceChainFactory<ApplyMiddleware<Self, Sf>, St, Req>
Creates a service factory that instantiates a service and applies
the current middleware to it. Read more
Auto Trait Implementations§
impl Freeze for InFlight
impl RefUnwindSafe for InFlight
impl Send for InFlight
impl Sync for InFlight
impl Unpin for InFlight
impl UnsafeUnpin for InFlight
impl UnwindSafe for InFlight
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