pub trait AdaptiveStrategy: Send + Sync {
// Required method
fn adjust(&self, current: u32, in_flight: u32, outcome: Outcome) -> u32;
}Available on crate feature
adaptive only.Expand description
How an AdaptiveLimiter moves its concurrency limit in response to an
Outcome.
The limiter clamps the returned value to [floor, ceiling], so a strategy
need not enforce the bounds itself.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".