pub struct WifiConfig {
pub access_points: Option<HashMap<String, AccessPointConfig>>,
pub wakeonwlan: Option<Vec<WakeOnWLan>>,
pub common_physical: Option<CommonPropertiesPhysicalDeviceType>,
pub common_all: Option<CommonPropertiesAllDevices>,
}
Fields§
§access_points: Option<HashMap<String, AccessPointConfig>>
This provides pre-configured connections to NetworkManager. Note that users can of course select other access points/SSIDs. The keys of the mapping are the SSIDs, and the values are mappings with the following supported properties:
wakeonwlan: Option<Vec<WakeOnWLan>>
This enables WakeOnWLan on supported devices. Not all drivers support all options. May be any combination of any, disconnect, magic_pkt, gtk_rekey_failure, eap_identity_req, four_way_handshake, rfkill_release or tcp (NetworkManager only). Or the exclusive default flag (the default).
common_physical: Option<CommonPropertiesPhysicalDeviceType>
Common properties for physical device types
common_all: Option<CommonPropertiesAllDevices>
Common properties for all devices
Trait Implementations§
Source§impl Clone for WifiConfig
impl Clone for WifiConfig
Source§fn clone(&self) -> WifiConfig
fn clone(&self) -> WifiConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WifiConfig
impl Debug for WifiConfig
Source§impl Default for WifiConfig
impl Default for WifiConfig
Source§fn default() -> WifiConfig
fn default() -> WifiConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WifiConfig
impl<'de> Deserialize<'de> for WifiConfig
Source§fn 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
Source§impl PartialEq for WifiConfig
impl PartialEq for WifiConfig
Source§impl Serialize for WifiConfig
impl Serialize 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§
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