TaskAction

Trait TaskAction 

Source
pub trait TaskAction<T: Task>: Send {
    // Required method
    fn execute(
        &self,
        task: &mut Executable<T>,
        project: &Project,
    ) -> BuildResult<()>;
}
Expand description

Represents some work that can be done by a task

Required Methods§

Source

fn execute( &self, task: &mut Executable<T>, project: &Project, ) -> BuildResult<()>

Executes the task action on some executable task along with it’s owning project.

Implementors§

Source§

impl<F, T> TaskAction<T> for F
where F: Fn(&mut Executable<T>, &Project) -> BuildResult + Send, T: Task,

Source§

impl<T: Task> TaskAction<T> for Action<T>