Struct PendingRequests
struct PendingRequests<S, C = super::completion::CompleteOnResponse> { ... }
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.
impl<M, S, Target, Request> MakeService for PendingRequests<S, C>
fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future
impl<S, C> Freeze for PendingRequests<S, C>
impl<S, C> Load for PendingRequests<S, C>
fn load(self: &Self) -> Count
impl<S, C> RefUnwindSafe for PendingRequests<S, C>
impl<S, C> Send for PendingRequests<S, C>
impl<S, C> Sync for PendingRequests<S, C>
impl<S, C> Unpin for PendingRequests<S, C>
impl<S, C> UnwindSafe for PendingRequests<S, C>
impl<S, C, Request> Service for PendingRequests<S, C>
fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>fn call(self: &mut Self, req: Request) -> <Self as >::Future
impl<S: $crate::fmt::Debug, C: $crate::fmt::Debug> Debug for PendingRequests<S, C>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<T> Any for PendingRequests<S, C>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for PendingRequests<S, C>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for PendingRequests<S, C>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for PendingRequests<S, C>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for PendingRequests<S, C>
impl<T> WithSubscriber for PendingRequests<S, C>
impl<T, Request> ServiceExt for PendingRequests<S, C>
impl<T, U> Into for PendingRequests<S, C>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for PendingRequests<S, C>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for PendingRequests<S, C>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>