pub struct PredictionEngine { /* private fields */ }Expand description
Predictive execution engine — estimates from historical data.
Implementations§
Source§impl PredictionEngine
impl PredictionEngine
pub fn new() -> Self
Sourcepub fn ingest_fingerprint(&mut self, fp: ExecutionFingerprint)
pub fn ingest_fingerprint(&mut self, fp: ExecutionFingerprint)
Add historical execution data.
Sourcepub fn predict_duration(
&self,
workflow_id: &str,
) -> WorkflowResult<DurationPrediction>
pub fn predict_duration( &self, workflow_id: &str, ) -> WorkflowResult<DurationPrediction>
Predict execution duration.
Sourcepub fn predict_success(
&self,
workflow_id: &str,
) -> WorkflowResult<SuccessPrediction>
pub fn predict_success( &self, workflow_id: &str, ) -> WorkflowResult<SuccessPrediction>
Predict success probability.
Sourcepub fn predict_resources(
&self,
workflow_id: &str,
) -> WorkflowResult<ResourcePrediction>
pub fn predict_resources( &self, workflow_id: &str, ) -> WorkflowResult<ResourcePrediction>
Predict resource consumption.
Sourcepub fn predict_cost(&self, workflow_id: &str) -> WorkflowResult<CostPrediction>
pub fn predict_cost(&self, workflow_id: &str) -> WorkflowResult<CostPrediction>
Predict monetary cost.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PredictionEngine
impl RefUnwindSafe for PredictionEngine
impl Send for PredictionEngine
impl Sync for PredictionEngine
impl Unpin for PredictionEngine
impl UnsafeUnpin for PredictionEngine
impl UnwindSafe for PredictionEngine
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