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§
sourcefn wake_waker(&self)
fn wake_waker(&self)
Wakes the waker previously passed to [set_waker
].
sourcefn process(&self)
fn process(&self)
Functional equivalent to otsys::otTaskletsProcess
.
sourcefn has_pending(&self) -> bool
fn has_pending(&self) -> bool
Functional equivalent to
otsys::otTaskletsHasPending
.