[][src]Struct tower_load::pending_requests::PendingRequests

pub struct PendingRequests<S, I = NoInstrument> { /* fields omitted */ }

Expresses load based on the number of currently-pending requests.

Trait Implementations

impl<S: Debug, I: Debug> Debug for PendingRequests<S, I>[src]

impl<S, I> Load for PendingRequests<S, I>[src]

type Metric = Count

A comparable load metric. Lesser values are "preferable" to greater values.

impl<S, I, Request> Service<Request> for PendingRequests<S, I> where
    S: Service<Request>,
    I: Instrument<Handle, S::Response>, 
[src]

type Response = I::Output

Responses given by the service.

type Error = S::Error

Errors produced by the service.

type Future = InstrumentFuture<S::Future, I, Handle>

The future response value.

Auto Trait Implementations

impl<S, I> RefUnwindSafe for PendingRequests<S, I> where
    I: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, I> Send for PendingRequests<S, I> where
    I: Send,
    S: Send

impl<S, I> Sync for PendingRequests<S, I> where
    I: Sync,
    S: Sync

impl<S, I> Unpin for PendingRequests<S, I> where
    I: Unpin,
    S: Unpin

impl<S, I> UnwindSafe for PendingRequests<S, I> where
    I: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.