Trait drone_cortexm::thr::ThrExec [−][src]
Thread executor.
Required methods
pub fn wakeup(self)
[src]
Wakes up the thread.
pub fn waker(self) -> Waker
[src]
Returns a handle for waking up a thread.
Provided methods
pub fn exec<F, O>(self, fut: F) where
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
[src]
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
Adds an executor for the future fut
to the fiber chain and wakes up
the thread immediately.
pub fn exec_factory<C, F, O>(self, factory: C) where
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
[src]
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
Adds an executor for the future returned by factory
to the fiber chain
and wakes up the thread immediately.
pub fn add_exec<F, O>(self, fut: F) where
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
[src]
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
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 add_exec_factory<C, F, O>(self, factory: C) where
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
[src]
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
Adds an executor for the future returned by factory
to the fiber
chain.
The future fut
will start polling on the next thread wake-up.
Implementors
impl<T> ThrExec for T where
T: SoftThrToken,
[src]
T: SoftThrToken,