[][src]Trait drone_cortexm::thr::ThrExec

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

Execution methods for interrupt tokens.

Required methods

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

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]

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.

Loading content...

Implementors

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

Loading content...