pub struct SystemStatus { /* private fields */ }Expand description
Evaluates load-signal histories into scaling decisions.
Implementations§
Source§impl SystemStatus
impl SystemStatus
Sourcepub fn new(options: SystemStatusOptions) -> Self
pub fn new(options: SystemStatusOptions) -> Self
Creates a status evaluator from the supplied options.
Sourcepub fn evaluate(
&self,
snapshotter: &Snapshotter,
desired_utilization_ratio: f32,
_now: Instant,
) -> ScaleDecision
pub fn evaluate( &self, snapshotter: &Snapshotter, desired_utilization_ratio: f32, _now: Instant, ) -> ScaleDecision
Evaluates all configured signals at the current Tokio-clock instant.
Auto Trait Implementations§
impl Freeze for SystemStatus
impl RefUnwindSafe for SystemStatus
impl Send for SystemStatus
impl Sync for SystemStatus
impl Unpin for SystemStatus
impl UnsafeUnpin for SystemStatus
impl UnwindSafe for SystemStatus
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