pub trait Task:
Sized
+ UpToDate
+ InitializeTask
+ CreateTask
+ TaskIO
+ Debug {
// Required method
fn task_action(
_task: &mut Executable<Self>,
_project: &Project,
) -> Result<(), PayloadError<BuildException>>;
// Provided method
fn did_work(&self) -> bool { ... }
}
Required Methods§
Sourcefn task_action(
_task: &mut Executable<Self>,
_project: &Project,
) -> Result<(), PayloadError<BuildException>>
fn task_action( _task: &mut Executable<Self>, _project: &Project, ) -> Result<(), PayloadError<BuildException>>
The action that the task performs
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.