[][src]Trait drone_cortex_m::thr::ThrExec

pub trait ThrExec: IntToken {
    fn exec<F, O: ExecOutput>(self, fut: F)
    where
        F: Future<Output = O> + Send + 'static
;
fn add_exec<F, O: ExecOutput>(self, fut: F)
    where
        F: Future<Output = O> + Send + 'static
;
fn trigger(self); }

Execution methods for interrupt tokens.

Required methods

fn exec<F, O: ExecOutput>(self, fut: F) where
    F: Future<Output = O> + Send + 'static, 

Adds an executor for the future fut to the fiber chain and triggers the thread immediately.

fn add_exec<F, O: ExecOutput>(self, fut: F) where
    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.

fn trigger(self)

Generates the interrupt.

This method will wake-up the thread.

Loading content...

Implementors

impl<T: IntToken> ThrExec for T[src]

Loading content...