[][src]Trait drone_cortex_m::thr::prelude::_

pub trait _: ThrToken {
    fn add_fn<F, R>(self, f: F)
    where
        F: FnMut() -> FiberState<(), R> + Send + 'static,
        R: ReturnNone
, { ... }
fn add_once<F>(self, f: F)
    where
        F: FnOnce() + Unpin + Send + 'static
, { ... } }

Extends ThrToken types with add_fn and add_once methods.

Provided methods

fn add_fn<F, R>(self, f: F) where
    F: FnMut() -> FiberState<(), R> + Send + 'static,
    R: ReturnNone, 

Adds a fiber for the closure f to the fiber chain.

fn add_once<F>(self, f: F) where
    F: FnOnce() + Unpin + Send + 'static, 

Adds a fiber for the closure f to the fiber chain.

Loading content...

Implementors

impl<T> ThrFiberClosure for T where
    T: ThrToken
[src]

Loading content...