Trait executors::common::CanExecute[][src]

pub trait CanExecute {
    fn execute_job(&self, job: Box<dyn FnOnce() + Send + 'static>);
}

A minimal trait for task executors.

This is mostly useful as a narrowed view for dynamic executor references.

Required methods

fn execute_job(&self, job: Box<dyn FnOnce() + Send + 'static>)[src]

Executes the function job on the Executor.

This is the same as execute, but already boxed up.

Loading content...

Implementors

impl CanExecute for executors::crossbeam_channel_pool::ThreadPool[src]

impl CanExecute for RunNowExecutor[src]

impl CanExecute for ThreadPoolExecutor[src]

impl<P> CanExecute for executors::crossbeam_workstealing_pool::ThreadPool<P> where
    P: Parker + Clone + 'static, 
[src]

Loading content...