Trait EspWifiTimerSource

Source
pub trait EspWifiTimerSource: Sealed {
    // Required method
    unsafe fn timer(self) -> PeriodicTimer<'static, Blocking>;
}
Expand description

A trait to allow better UX for initializing esp-wifi.

This trait is meant to be used only for the init function.

Required Methods§

Source

unsafe fn timer(self) -> PeriodicTimer<'static, Blocking>

Returns the timer source.

§Safety

It is UB to call this method outside of init.

Implementors§

Source§

impl<T> EspWifiTimerSource for T
where T: IntoAnyTimer + Sealed,