pub struct WifiCountry {
pub cc: [u8; 3],
pub schan: u8,
pub nchan: u8,
pub max_tx_power: i8,
pub policy: u8,
}
Expand description
Structure describing Wi-Fi country-based regional restrictions. [docs][https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/network/esp_wifi.html#_CPPv414wifi_country_t]
Fields§
§cc: [u8; 3]
Country code string.
schan: u8
Start channel of the allowed 2.4GHz Wi-Fi channels
nchan: u8
Total channel number of the allowed 2.4GHz Wi-Fi channels
max_tx_power: i8
§policy: u8
Enum. Auto for 0, Manual for 1
Trait Implementations§
Source§impl Default for WifiCountry
impl Default for WifiCountry
Source§fn default() -> WifiCountry
fn default() -> WifiCountry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WifiCountry
impl RefUnwindSafe for WifiCountry
impl Send for WifiCountry
impl Sync for WifiCountry
impl Unpin for WifiCountry
impl UnwindSafe for WifiCountry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more