pub trait ExecutableTask: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn task_type(&self) -> &str;
fn execute(&self) -> SklResult<TaskResult>;
fn resource_estimate(&self) -> ResourceEstimate;
fn dependencies(&self) -> Vec<String>;
}Expand description
Task that can be executed by the engine
Required Methods§
Sourcefn execute(&self) -> SklResult<TaskResult>
fn execute(&self) -> SklResult<TaskResult>
Execute the task
Sourcefn resource_estimate(&self) -> ResourceEstimate
fn resource_estimate(&self) -> ResourceEstimate
Estimate resource requirements
Sourcefn dependencies(&self) -> Vec<String>
fn dependencies(&self) -> Vec<String>
Get task dependencies