pub struct WifiConfig {
pub station: bool,
pub default_enabled: bool,
pub supported_modes: u16,
pub max_sae_password: usize,
pub raw_keys: bool,
pub binary_ssids: bool,
}Expand description
The Wi-Fi hardware a device has.
Fields§
§station: boolWhether the device can join a network, or only hear them.
A tracker that scans access points to place itself has a receiver
and no station: it advertises CAP_WIFI_SCAN alone, answers the
scan properties, and refuses the rest. Every device that can join
can also scan, which is why there is no separate switch for the
scan.
default_enabled: boolPost-reset value of PROP_WIFI_ENABLED.
Off on anything battery powered, where a station is a larger continuous load than the mesh radio it sits beside. A mains-powered bridge whose whole job is the connection says otherwise.
supported_modes: u16Supported station requirements, as SecurityMode bits.
max_sae_password: usizeMaximum SAE password length this platform accepts.
raw_keys: boolWhether the driver accepts a raw WPA/WPA2 PMK.
binary_ssids: boolWhether arbitrary SSID bytes are supported, including embedded NULs.
Implementations§
Source§impl WifiConfig
impl WifiConfig
pub fn validate_network(&self, entry: &NetworkEntry<'_>) -> Result<(), Status>
Trait Implementations§
Source§impl Clone for WifiConfig
impl Clone for WifiConfig
Source§fn clone(&self) -> WifiConfig
fn clone(&self) -> WifiConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WifiConfig
impl Debug for WifiConfig
Source§impl PartialEq for WifiConfig
impl PartialEq for WifiConfig
impl Copy for WifiConfig
impl Eq for WifiConfig
impl StructuralPartialEq for WifiConfig
Auto Trait Implementations§
impl Freeze for WifiConfig
impl RefUnwindSafe for WifiConfig
impl Send for WifiConfig
impl Sync for WifiConfig
impl Unpin for WifiConfig
impl UnwindSafe for WifiConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)