pub struct TaskScheduler { /* private fields */ }
Expand description

The scheduler is in charge of running Task (plugin instance and argument).

Implementations

Provide different method to run, schedule and create new task.

Instantiate a new scheduler.

Create a new task and schedule it to be launched, return a task id or an error if task already exist.

Create a new task and block until the task is finished, return a plugin result or an error, if task exist or if execution of the task failed.

Check if all task in the tasks map are finished.

Wait until all scheduled task are finished.

Return a TaskState corresponding to a task id.

Return a vec of TaskState for corresponding task id.

Return a copy of all the task state for all task in the tasks map.

Return the current count of tasks added to the scheduler.

Return all finished task and their result.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.