esp_wifi::wifi

Trait WifiDeviceMode

Source
pub trait WifiDeviceMode: Sealed {
    // Required methods
    fn mode(self) -> WifiMode;
    fn mac_address(self) -> [u8; 6];
}
Expand description

Provides methods for retrieving the Wi-Fi mode and MAC address.

Required Methods§

Source

fn mode(self) -> WifiMode

Returns the currently active Wi-Fi mode.

Source

fn mac_address(self) -> [u8; 6]

Returns the MAC address of the Wi-Fi device.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§