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
.