pub trait PerformancePredictor: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn predict(
&self,
historical_data: &PerformanceHistory,
) -> Result<PerformancePrediction, PredictionError>;
fn confidence(&self) -> f64;
fn prediction_horizon(&self) -> Duration;
}Required Methods§
fn name(&self) -> &str
fn predict( &self, historical_data: &PerformanceHistory, ) -> Result<PerformancePrediction, PredictionError>
fn confidence(&self) -> f64
fn prediction_horizon(&self) -> Duration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".