Trait Task

Source
pub trait Task:
    UpToDate
    + InitializeTask
    + CreateTask
    + TaskIO
    + Sized
    + Debug {
    // Required method
    fn task_action(
        _task: &mut Executable<Self>,
        _project: &Project,
    ) -> BuildResult;

    // Provided method
    fn did_work(&self) -> bool { ... }
}

Required Methods§

Source

fn task_action(_task: &mut Executable<Self>, _project: &Project) -> BuildResult

The action that the task performs

Provided Methods§

Source

fn did_work(&self) -> bool

Check whether this task did work.

By default, this is always true.

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.

Implementors§