pub struct AsyncEth<T> { /* private fields */ }Implementations§
Source§impl<T> AsyncEth<T>
impl<T> AsyncEth<T>
pub fn wrap( eth: T, event_loop: EspSystemEventLoop, timer_service: EspTaskTimerService, ) -> Result<Self, EspError>
pub fn eth(&self) -> &T
pub fn eth_mut(&mut self) -> &mut T
pub fn is_started(&self) -> Result<bool, EspError>
pub fn is_connected(&self) -> Result<bool, EspError>
pub async fn start(&mut self) -> Result<(), EspError>
pub async fn stop(&mut self) -> Result<(), EspError>
pub async fn wait_connected(&mut self) -> Result<(), EspError>
pub async fn eth_wait_while<F: FnMut(&mut Self) -> Result<bool, EspError>>( &mut self, matcher: F, timeout: Option<Duration>, ) -> Result<(), EspError>
Source§impl<T> AsyncEth<T>where
T: NetifStatus,
impl<T> AsyncEth<T>where
T: NetifStatus,
pub fn is_up(&self) -> Result<bool, EspError>
pub async fn wait_netif_up(&mut self) -> Result<(), EspError>
pub async fn ip_wait_while<F: FnMut(&mut Self) -> Result<bool, EspError>>( &mut self, matcher: F, timeout: Option<Duration>, ) -> Result<(), EspError>
Trait Implementations§
Source§impl<T> Eth for AsyncEth<T>
Available on esp_idf_comp_esp_timer_enabled and crate feature alloc only.
impl<T> Eth for AsyncEth<T>
Available on
esp_idf_comp_esp_timer_enabled and crate feature alloc only.Source§impl<T> NetifStatus for AsyncEth<T>where
T: NetifStatus,
Available on esp_idf_comp_esp_netif_enabled and esp_idf_comp_esp_timer_enabled and crate feature alloc only.
impl<T> NetifStatus for AsyncEth<T>where
T: NetifStatus,
Available on
esp_idf_comp_esp_netif_enabled and esp_idf_comp_esp_timer_enabled and crate feature alloc only.