Struct PendingRequests
pub struct PendingRequests<S, C = CompleteOnResponse> { /* private fields */ }
Measures the load of the underlying service using the number of currently-pending requests.
Implementations
impl<S, C> PendingRequests<S, C>
fn new(service: S, completion: C) -> SelfWraps an
S-typed service so that its load is tracked by the number of pending requests.
Trait Implementations
impl<S, C> Load for PendingRequests<S, C>
type Metric = Count;fn load(&self) -> Count
impl<S, C, Request> Service<Request> for PendingRequests<S, C>
where
S: Service<Request>,
C: TrackCompletion<Handle, S::Response>,
type Response = <C as TrackCompletion<Handle, <S as Service<Request>>::Response>>::Output;type Error = <S as Service<Request>>::Error;type Future = TrackCompletionFuture<<S as Service<Request>>::Future, C, Handle>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn call(&mut self, req: Request) -> Self::Future
impl<S: Debug, C: Debug> Debug for PendingRequests<S, C>
fn fmt(&self, f: &mut Formatter<'_>) -> Result