pub struct AccessPointConfig {
pub password: Option<String>,
pub auth: Option<AuthConfig>,
pub mode: Option<AccessPointMode>,
pub bssid: Option<String>,
pub band: Option<WirelessBand>,
pub channel: Option<u32>,
pub hidden: Option<bool>,
}
Fields§
§password: Option<String>
Enable WPA2 authentication and set the passphrase for it. If neither this nor an auth block are given, the network is assumed to be open. The setting
auth: Option<AuthConfig>
§mode: Option<AccessPointMode>
Possible access point modes are infrastructure (the default), ap (create an access point to which other devices can connect), and adhoc (peer to peer networks without a central access point). ap is only supported with NetworkManager.
bssid: Option<String>
If specified, directs the device to only associate with the given access point.
band: Option<WirelessBand>
Possible bands are 5GHz (for 5GHz 802.11a) and 2.4GHz (for 2.4GHz 802.11), do not restrict the 802.11 frequency band of the network if unset (the default).
channel: Option<u32>
Wireless channel to use for the Wi-Fi connection. Because channel numbers overlap between bands, this property takes effect only if the band property is also set.
Set to true to change the SSID scan technique for connecting to hidden WiFi networks. Note this may have slower performance compared to false (the default) when connecting to publicly broadcast SSIDs.
Trait Implementations§
Source§impl Clone for AccessPointConfig
impl Clone for AccessPointConfig
Source§fn clone(&self) -> AccessPointConfig
fn clone(&self) -> AccessPointConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more