tower_load

Trait Load

Source
pub trait Load {
    type Metric: PartialOrd;

    // Required method
    fn load(&self) -> Self::Metric;
}
Expand description

Exposes a load metric.

Required Associated Types§

Source

type Metric: PartialOrd

A comparable load metric. Lesser values are “preferable” to greater values.

Required Methods§

Source

fn load(&self) -> Self::Metric

Obtains a service’s load.

Implementors§

Source§

impl<S, I> Load for PeakEwma<S, I>

Source§

impl<S, I> Load for PendingRequests<S, I>

Source§

impl<T, M: Copy + PartialOrd> Load for Constant<T, M>