Trait openthread::ot::Platform

source ·
pub trait Platform {
    // Required method
    unsafe fn process_poll(
        &mut self,
        instance: &Instance,
        cx: &mut Context<'_>
    ) -> Result<(), Error>;
}
Expand description

Trait for OpenThread platform implementations.

Required Methods§

source

unsafe fn process_poll( &mut self, instance: &Instance, cx: &mut Context<'_> ) -> Result<(), Error>

Asynchronously process platform implementation tasks.

§Safety

This method is unsafe because it MUST ONLY be called from the same thread that the OpenThread instance is being used on.

You should never need to call this directly.

Implementors§