pub struct HysteresisController { /* private fields */ }
Expand description
Hysteresis controller to prevent oscillations
Implementations§
Source§impl HysteresisController
impl HysteresisController
pub fn new( consecutive_signals_required: usize, scale_up_cooldown: Duration, scale_down_cooldown: Duration, ) -> Self
pub fn should_execute_scaling( &mut self, proposed_action: &ScalingAction, ) -> bool
Trait Implementations§
Source§impl Clone for HysteresisController
impl Clone for HysteresisController
Auto Trait Implementations§
impl Freeze for HysteresisController
impl RefUnwindSafe for HysteresisController
impl Send for HysteresisController
impl Sync for HysteresisController
impl Unpin for HysteresisController
impl UnwindSafe for HysteresisController
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