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>
Wrapper returned by
Self::create. Read moreSource§fn create(&self, _: &St, service: S) -> <InFlight as Middleware<S, St>>::Service
fn create(&self, _: &St, service: S) -> <InFlight as Middleware<S, St>>::Service
Wraps
service using the supplied construction state. Read moreSource§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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