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§
Provided Methods§
fn submit_safe<F>(&self, runnable: F, report_msg: bool)
fn support_async(&self) -> bool
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.