[][src]Trait transact::scheduler::multi::SubSchedulerHandler

pub trait SubSchedulerHandler {
    fn pass_scheduler(
        &mut self,
        task_iterator: Box<dyn Iterator<Item = ExecutionTask> + Send>,
        notifier: Box<dyn ExecutionTaskCompletionNotifier>
    ) -> Result<(), String>; }

The MultiScheduler will send the task iterators and notifiers of its sub-schedulers to the struct that implements this trait.

Required methods

fn pass_scheduler(
    &mut self,
    task_iterator: Box<dyn Iterator<Item = ExecutionTask> + Send>,
    notifier: Box<dyn ExecutionTaskCompletionNotifier>
) -> Result<(), String>

Gives the task iterator and notifier of a sub-scheduler to the sub-scheduler handler; the sub-scheduler handler will get tasks directly from the sub-scheduler and send task execution reults back to the sub-scheduler.

Loading content...

Implementors

impl SubSchedulerHandler for Executor[src]

Loading content...