Executor

Trait Executor 

Source
pub trait Executor: TriggerCaller {
    // Required method
    fn submit(&self, runnable: &mut impl Runnable, report_msg: bool);

    // Provided methods
    fn submit_safe<F>(&self, runnable: F, report_msg: bool)
       where F: Runnable + Send + Sync + 'static { ... }
    fn support_async(&self) -> bool { ... }
    fn check_async_support(&self, runnable: &impl Runnable) { ... }
}

Required Methods§

Source

fn submit(&self, runnable: &mut impl Runnable, report_msg: bool)

Provided Methods§

Source

fn submit_safe<F>(&self, runnable: F, report_msg: bool)
where F: Runnable + Send + Sync + 'static,

Source

fn support_async(&self) -> bool

Source

fn check_async_support(&self, runnable: &impl Runnable)

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§