Trait lambda_sqs::tower::load::Load
[−]pub trait Load {
type Metric: PartialOrd<Self::Metric>;
fn load(&self) -> Self::Metric;
}Expand description
Types that implement this trait can give an estimate of how loaded they are.
See the module documentation for more details.
Required Associated Types
type Metric: PartialOrd<Self::Metric>
type Metric: PartialOrd<Self::Metric>
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.