pub struct PendingRequests<S, I = NoInstrument> { /* private fields */ }
Expand description
Expresses load based on the number of currently-pending requests.
Trait Implementations§
Source§impl<S, I> Load for PendingRequests<S, I>
impl<S, I> Load for PendingRequests<S, I>
Source§impl<S, I, Request> Service<Request> for PendingRequests<S, I>
impl<S, I, Request> Service<Request> for PendingRequests<S, I>
Source§type Response = <I as Instrument<Handle, <S as Service<Request>>::Response>>::Output
type Response = <I as Instrument<Handle, <S as Service<Request>>::Response>>::Output
Responses given by the service.
Source§type Future = InstrumentFuture<<S as Service<Request>>::Future, I, Handle>
type Future = InstrumentFuture<<S as Service<Request>>::Future, I, Handle>
The future response value.
Auto Trait Implementations§
impl<S, I> Freeze for PendingRequests<S, I>
impl<S, I> RefUnwindSafe for PendingRequests<S, I>where
S: RefUnwindSafe,
I: RefUnwindSafe,
impl<S, I> Send for PendingRequests<S, I>
impl<S, I> Sync for PendingRequests<S, I>
impl<S, I> Unpin for PendingRequests<S, I>
impl<S, I> UnwindSafe for PendingRequests<S, I>where
S: UnwindSafe,
I: UnwindSafe,
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