Trait Task

Source
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§

Source

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

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§

Source§

impl Task for Help

Source§

impl Task for TaskReport

Source§

impl Task for assemble_std::defaults::tasks::WrapperTask

Source§

impl Task for Empty

Source§

impl Task for DownloadFile

Source§

impl Task for assemble_std::tasks::wrapper::WrapperTask

Source§

impl<T> Task for Basic<T>
where T: Debug,