pub trait TaskBackend: Send + Sync {
// Required methods
fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
name: &'life1 str,
task: &'life2 Task,
environment: &'life3 Environment,
project_root: &'life4 Path,
capture_output: bool,
) -> Pin<Box<dyn Future<Output = Result<TaskResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn name(&self) -> &'static str;
}Expand description
Trait for task execution backends
Required Methods§
Sourcefn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
name: &'life1 str,
task: &'life2 Task,
environment: &'life3 Environment,
project_root: &'life4 Path,
capture_output: bool,
) -> Pin<Box<dyn Future<Output = Result<TaskResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
name: &'life1 str,
task: &'life2 Task,
environment: &'life3 Environment,
project_root: &'life4 Path,
capture_output: bool,
) -> Pin<Box<dyn Future<Output = Result<TaskResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Execute a single task and return the result