Trait Load

pub 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: PartialOrd;

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::Metric

Estimate the service's current load.

Implementors