pub struct EfficiencyAnalyzer { /* private fields */ }Expand description
Efficiency analysis and optimization system
Implementations§
Source§impl EfficiencyAnalyzer
impl EfficiencyAnalyzer
Sourcepub async fn analyze_efficiency_opportunities(
&self,
) -> Result<Vec<EfficiencyOpportunity>>
pub async fn analyze_efficiency_opportunities( &self, ) -> Result<Vec<EfficiencyOpportunity>>
Analyze efficiency opportunities
Sourcepub async fn detect_energy_waste(
&mut self,
energy_measurement: &EnergyMeasurement,
) -> Result<Vec<WasteMeasurement>>
pub async fn detect_energy_waste( &mut self, energy_measurement: &EnergyMeasurement, ) -> Result<Vec<WasteMeasurement>>
Detect energy waste patterns
Sourcepub async fn analyze_session_efficiency(
&self,
session_info: &SessionInfo,
energy_measurement: &EnergyMeasurement,
) -> Result<SessionEfficiencyAnalysis>
pub async fn analyze_session_efficiency( &self, session_info: &SessionInfo, energy_measurement: &EnergyMeasurement, ) -> Result<SessionEfficiencyAnalysis>
Analyze session efficiency
Sourcepub async fn identify_efficiency_bottlenecks(
&self,
energy_measurement: &EnergyMeasurement,
) -> Result<Vec<String>>
pub async fn identify_efficiency_bottlenecks( &self, energy_measurement: &EnergyMeasurement, ) -> Result<Vec<String>>
Identify efficiency bottlenecks
Sourcepub async fn calculate_optimization_potential(
&self,
current_efficiency: f64,
) -> Result<f64>
pub async fn calculate_optimization_potential( &self, current_efficiency: f64, ) -> Result<f64>
Calculate optimization potential
Sourcepub async fn get_model_optimization_recommendations(
&self,
) -> Result<Vec<ModelOptimizationRecommendation>>
pub async fn get_model_optimization_recommendations( &self, ) -> Result<Vec<ModelOptimizationRecommendation>>
Get model optimization recommendations
Sourcepub fn get_waste_measurements(&self) -> &[WasteMeasurement]
pub fn get_waste_measurements(&self) -> &[WasteMeasurement]
Get waste measurements history
Sourcepub fn clear_waste_history(&mut self)
pub fn clear_waste_history(&mut self)
Clear waste measurements history
Sourcepub fn add_waste_pattern(&mut self, pattern: WastePattern)
pub fn add_waste_pattern(&mut self, pattern: WastePattern)
Add a custom efficiency pattern
Sourcepub fn get_optimization_opportunities(&self) -> &[EfficiencyOpportunity]
pub fn get_optimization_opportunities(&self) -> &[EfficiencyOpportunity]
Get current optimization opportunities
Sourcepub async fn update_optimization_opportunities(
&mut self,
measurements: &[EnergyMeasurement],
) -> Result<()>
pub async fn update_optimization_opportunities( &mut self, measurements: &[EnergyMeasurement], ) -> Result<()>
Update optimization opportunities based on recent measurements
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EfficiencyAnalyzer
impl RefUnwindSafe for EfficiencyAnalyzer
impl Send for EfficiencyAnalyzer
impl Sync for EfficiencyAnalyzer
impl Unpin for EfficiencyAnalyzer
impl UnsafeUnpin for EfficiencyAnalyzer
impl UnwindSafe for EfficiencyAnalyzer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.