pub struct PerformanceOptimizer { /* private fields */ }Expand description
Main performance optimizer coordinating all optimization strategies
Implementations§
Source§impl PerformanceOptimizer
impl PerformanceOptimizer
Sourcepub fn initialize(&mut self) -> SklResult<()>
pub fn initialize(&mut self) -> SklResult<()>
Initialize the optimizer
Sourcepub fn set_goals(&mut self, goals: OptimizationGoals) -> SklResult<()>
pub fn set_goals(&mut self, goals: OptimizationGoals) -> SklResult<()>
Set optimization goals
Sourcepub fn add_optimizer(
&mut self,
optimizer: Box<dyn SpecializedOptimizer>,
) -> SklResult<()>
pub fn add_optimizer( &mut self, optimizer: Box<dyn SpecializedOptimizer>, ) -> SklResult<()>
Add a specialized optimizer
Sourcepub async fn start_optimization(&mut self) -> SklResult<()>
pub async fn start_optimization(&mut self) -> SklResult<()>
Start optimization loop
Sourcepub fn get_status(&self) -> OptimizerState
pub fn get_status(&self) -> OptimizerState
Get optimization status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceOptimizer
impl !RefUnwindSafe for PerformanceOptimizer
impl Send for PerformanceOptimizer
impl Sync for PerformanceOptimizer
impl Unpin for PerformanceOptimizer
impl !UnwindSafe for PerformanceOptimizer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more