Struct tower_load::pending_requests::PendingRequests [−][src]
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.
fn load(&self) -> Count
[src]
impl<S, I, Request> Service<Request> for PendingRequests<S, I> where
S: Service<Request>,
I: Instrument<Handle, S::Response>,
[src]
S: Service<Request>,
I: Instrument<Handle, S::Response>,
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.
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Request) -> Self::Future
[src]
Auto Trait Implementations
impl<S, I> RefUnwindSafe for PendingRequests<S, I> where
I: RefUnwindSafe,
S: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, I> Send for PendingRequests<S, I> where
I: Send,
S: Send,
I: Send,
S: Send,
impl<S, I> Sync for PendingRequests<S, I> where
I: Sync,
S: Sync,
I: Sync,
S: Sync,
impl<S, I> Unpin for PendingRequests<S, I> where
I: Unpin,
S: Unpin,
I: Unpin,
S: Unpin,
impl<S, I> UnwindSafe for PendingRequests<S, I> where
I: UnwindSafe,
S: UnwindSafe,
I: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,