pub struct AutoscaleState {
pub arrival_rate: Ewma,
pub target: Option<u32>,
pub last_desired: u32,
/* private fields */
}Expand description
Per-pool autoscaler state: smoothed rates, the last target and the history used for scale-down stabilization.
Fields§
§arrival_rate: EwmaSmoothed arrival rate (tasks per second).
target: Option<u32>Last requested target.
last_desired: u32Desired capacity computed at the last evaluation (before step limits).
Implementations§
Trait Implementations§
Source§impl Clone for AutoscaleState
impl Clone for AutoscaleState
Source§impl Debug for AutoscaleState
impl Debug for AutoscaleState
Auto Trait Implementations§
impl Freeze for AutoscaleState
impl RefUnwindSafe for AutoscaleState
impl Send for AutoscaleState
impl Sync for AutoscaleState
impl Unpin for AutoscaleState
impl UnsafeUnpin for AutoscaleState
impl UnwindSafe for AutoscaleState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more