TriggerCaller

Trait TriggerCaller 

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

    // Provided methods
    fn trigger_safe<F>(&self, runnable: F, report_msg: bool)
       where F: Runnable + Send + Sync + 'static { ... }
    fn trigger_holder(&self, runnable: RunnableHolder, report_msg: bool) { ... }
}

Required Methods§

Source

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

Provided Methods§

Source

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

Source

fn trigger_holder(&self, runnable: RunnableHolder, report_msg: bool)

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§