pub struct AutoTuner { /* private fields */ }Expand description
Automatic tuning engine - applies recommendations automatically.
Implementations§
Source§impl AutoTuner
impl AutoTuner
pub fn new(_analytics: IndexAnalytics) -> Self
Sourcepub fn should_auto_apply(&self, recommendation: &TuningRecommendation) -> bool
pub fn should_auto_apply(&self, recommendation: &TuningRecommendation) -> bool
Check if a recommendation should be auto-applied.
Sourcepub fn apply_recommendation(
&mut self,
recommendation: &TuningRecommendation,
) -> bool
pub fn apply_recommendation( &mut self, recommendation: &TuningRecommendation, ) -> bool
Apply a recommendation.
Sourcepub fn get_auto_applicable_recommendations(
&self,
report: &PerformanceReport,
) -> Vec<TuningRecommendation>
pub fn get_auto_applicable_recommendations( &self, report: &PerformanceReport, ) -> Vec<TuningRecommendation>
Get recommendations that are ready for auto-apply.
Auto Trait Implementations§
impl Freeze for AutoTuner
impl RefUnwindSafe for AutoTuner
impl Send for AutoTuner
impl Sync for AutoTuner
impl Unpin for AutoTuner
impl UnsafeUnpin for AutoTuner
impl UnwindSafe for AutoTuner
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