pub trait Thread {
type NetCtl<'a>: NetCtl + ThreadDiag + NetChangeNotif
where Self: 'a;
// Required method
async fn run<T>(&mut self, task: T) -> Result<(), Error>
where T: ThreadTask;
}Expand description
A trait for running a task within a context where the wireless interface is initialized and operable
Required Associated Types§
Sourcetype NetCtl<'a>: NetCtl + ThreadDiag + NetChangeNotif
where
Self: 'a
type NetCtl<'a>: NetCtl + ThreadDiag + NetChangeNotif where Self: 'a
The Thread network controller type this driver produces in its operational
phase. Naming it here lets the commissioning and operational handler chains
be built with the SAME WirelessNetCtl<Self::NetCtl<'_>> net-ctl type,
yielding a single handler-chain monomorphization. The bound is Thread’s own
(ThreadDiag) — a Thread controller is never asked to be a Wifi one.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".