[−][src]Trait drone_cortexm::thr::ThrExec
Execution methods for interrupt tokens.
Required methods
pub fn exec<F, O: ExecOutput>(self, fut: F) where
F: Future<Output = O> + Send + 'static, [src]
F: Future<Output = O> + Send + 'static,
Adds an executor for the future fut to the fiber chain and triggers
the thread immediately.
pub fn add_exec<F, O: ExecOutput>(self, fut: F) where
F: Future<Output = O> + Send + 'static, [src]
F: Future<Output = O> + Send + 'static,
Adds an executor for the future fut to the fiber chain.
The future fut will start polling on the next thread wake-up.
pub fn trigger(self)[src]
Generates the interrupt.
This method will wake-up the thread.