#[non_exhaustive]pub enum SettingsSummary {
Wifi {
ssid: String,
mode: Option<String>,
security: Option<WifiSecuritySummary>,
band: Option<String>,
channel: Option<u32>,
bssid: Option<String>,
hidden: bool,
mac_randomization: Option<String>,
},
Ethernet {
mac_address: Option<String>,
auto_negotiate: Option<bool>,
speed_mbps: Option<u32>,
mtu: Option<u32>,
},
Vpn {
service_type: String,
user_name: Option<String>,
password_flags: VpnSecretFlags,
data_keys: Vec<String>,
persistent: bool,
},
WireGuard {
listen_port: Option<u16>,
mtu: Option<u32>,
fwmark: Option<u32>,
peer_count: usize,
first_peer_endpoint: Option<String>,
},
Gsm {
apn: Option<String>,
user_name: Option<String>,
password_flags: u32,
pin_flags: u32,
},
Cdma {
number: Option<String>,
user_name: Option<String>,
password_flags: u32,
},
Bluetooth {
bdaddr: String,
bt_type: String,
},
Other {
sections: Vec<String>,
},
}Expand description
Decoded summary for the connection type (and related sections).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Wifi
802-11-wireless — SSID and security hints (no PSK / EAP secrets).
Fields
§
security: Option<WifiSecuritySummary>Present when a security block exists (802-11-wireless-security / 802-1x).
hidden property.
Ethernet
802-3-ethernet.
Fields
Vpn
Generic vpn connection (non-WireGuard service types).
Fields
§
password_flags: VpnSecretFlagsvpn.password-flags.
WireGuard
Native WireGuard or VPN plugin pointing at WireGuard.
Fields
Gsm
gsm mobile broadband.
Fields
Cdma
cdma mobile broadband.
Fields
Bluetooth
bluetooth.
Other
Any other connection.type — lists settings section names only.
Trait Implementations§
Source§impl Clone for SettingsSummary
impl Clone for SettingsSummary
Source§fn clone(&self) -> SettingsSummary
fn clone(&self) -> SettingsSummary
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 moreAuto Trait Implementations§
impl Freeze for SettingsSummary
impl RefUnwindSafe for SettingsSummary
impl Send for SettingsSummary
impl Sync for SettingsSummary
impl Unpin for SettingsSummary
impl UnsafeUnpin for SettingsSummary
impl UnwindSafe for SettingsSummary
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