Trait TaskAction

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

Represents some work that can be done by a task

Required Methods§

Source

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

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) -> Result<(), PayloadError<BuildException>> + Send, T: Task,

Source§

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