pub struct ThroughputOptimizer { /* private fields */ }Expand description
Throughput optimizer implementation
Implementations§
Source§impl ThroughputOptimizer
impl ThroughputOptimizer
pub fn new(config: ThroughputOptimizerConfig) -> SklResult<Self>
Trait Implementations§
Source§impl Debug for ThroughputOptimizer
impl Debug for ThroughputOptimizer
Source§impl SpecializedOptimizer for ThroughputOptimizer
impl SpecializedOptimizer for ThroughputOptimizer
Source§fn domain(&self) -> OptimizationDomain
fn domain(&self) -> OptimizationDomain
Get optimization domain
Source§fn initialize(&mut self) -> SklResult<()>
fn initialize(&mut self) -> SklResult<()>
Initialize the optimizer
Source§fn analyze_performance(
&self,
metrics: &PerformanceMetrics,
) -> SklResult<PerformanceAnalysis>
fn analyze_performance( &self, metrics: &PerformanceMetrics, ) -> SklResult<PerformanceAnalysis>
Analyze current performance
Source§fn generate_recommendations(
&self,
analysis: &PerformanceAnalysis,
) -> SklResult<Vec<OptimizationRecommendation>>
fn generate_recommendations( &self, analysis: &PerformanceAnalysis, ) -> SklResult<Vec<OptimizationRecommendation>>
Generate optimization recommendations
Source§fn apply_optimizations(
&mut self,
recommendations: &[OptimizationRecommendation],
) -> Pin<Box<dyn Future<Output = SklResult<OptimizationResult>> + Send + '_>>
fn apply_optimizations( &mut self, recommendations: &[OptimizationRecommendation], ) -> Pin<Box<dyn Future<Output = SklResult<OptimizationResult>> + Send + '_>>
Apply optimizations
Source§fn get_metrics(&self) -> SklResult<OptimizerMetrics>
fn get_metrics(&self) -> SklResult<OptimizerMetrics>
Get optimizer metrics
Auto Trait Implementations§
impl Freeze for ThroughputOptimizer
impl RefUnwindSafe for ThroughputOptimizer
impl Send for ThroughputOptimizer
impl Sync for ThroughputOptimizer
impl Unpin for ThroughputOptimizer
impl UnwindSafe for ThroughputOptimizer
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