openthread::ot

Trait 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§