Trait openthread::ot::Tasklets

source ·
pub trait Tasklets: Unpin {
    // Required methods
    fn set_waker(&self, waker: Waker);
    fn wake_waker(&self);
    fn process(&self);
    fn has_pending(&self) -> bool;
}
Expand description

Methods from the OpenThread “Tasklets” Module.

This trait has additional methods to allow for efficient use in asynchronous rust.

Required Methods§

source

fn set_waker(&self, waker: Waker)

Sets the waker to be used to wake up the tasklet future.

source

fn wake_waker(&self)

Wakes the waker previously passed to [set_waker].

source

fn process(&self)

Functional equivalent to otsys::otTaskletsProcess.

source

fn has_pending(&self) -> bool

Functional equivalent to otsys::otTaskletsHasPending.

Implementors§