Struct netplan_types::AccessPointConfig
source · [−]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
sourceimpl Clone for AccessPointConfig
impl Clone for AccessPointConfig
sourcefn clone(&self) -> AccessPointConfig
fn clone(&self) -> AccessPointConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AccessPointConfig
impl Debug for AccessPointConfig
sourceimpl Default for AccessPointConfig
impl Default for AccessPointConfig
sourcefn default() -> AccessPointConfig
fn default() -> AccessPointConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AccessPointConfig
impl<'de> Deserialize<'de> for AccessPointConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<AccessPointConfig> for AccessPointConfig
impl PartialEq<AccessPointConfig> for AccessPointConfig
sourcefn eq(&self, other: &AccessPointConfig) -> bool
fn eq(&self, other: &AccessPointConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AccessPointConfig) -> bool
fn ne(&self, other: &AccessPointConfig) -> bool
This method tests for !=.
sourceimpl Serialize for AccessPointConfig
impl Serialize for AccessPointConfig
impl Eq for AccessPointConfig
impl StructuralEq for AccessPointConfig
impl StructuralPartialEq for AccessPointConfig
Auto Trait Implementations
impl RefUnwindSafe for AccessPointConfig
impl Send for AccessPointConfig
impl Sync for AccessPointConfig
impl Unpin for AccessPointConfig
impl UnwindSafe for AccessPointConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more