Trait Load
trait Load
Types that implement this trait can give an estimate of how loaded they are.
See the module documentation for more details.
Associated Types
type Metric: TraitBound { trait_: Path { path: "PartialOrd", id: Id(1136), args: None }, generic_params: [], modifier: None }A comparable load metric.
Lesser values indicate that the service is less loaded, and should be preferred for new requests over another service with a higher value.
Required Methods
fn load(self: &Self) -> <Self as >::MetricEstimate the service's current load.
Implementors
impl<T, M: Copy + PartialOrd> Load for Constant<T, M>impl<S, C> Load for PeakEwma<S, C>impl<S, C> Load for PendingRequests<S, C>impl<S> Load for RateLimit<S>impl<S> Load for ConcurrencyLimit<S>