#[non_exhaustive]pub struct AccessPoint {Show 14 fields
pub path: OwnedObjectPath,
pub device_path: OwnedObjectPath,
pub interface: String,
pub ssid: String,
pub ssid_bytes: Vec<u8>,
pub bssid: String,
pub frequency_mhz: u32,
pub max_bitrate_kbps: u32,
pub strength: u8,
pub mode: ApMode,
pub security: SecurityFeatures,
pub last_seen_secs: Option<i64>,
pub is_active: bool,
pub device_state: DeviceState,
}Expand description
A single Wi-Fi access point reported by NetworkManager.
Unlike Network, which groups APs sharing an SSID,
each AccessPoint corresponds to one BSSID and carries per-device state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: OwnedObjectPathD-Bus path of this access point object.
device_path: OwnedObjectPathD-Bus path of the wireless device that sees this AP.
interface: StringInterface name of the device (e.g. "wlan0").
ssid: StringSSID decoded as UTF-8, or "<hidden>" for hidden networks.
ssid_bytes: Vec<u8>Raw SSID bytes for non-UTF-8 SSIDs.
bssid: StringBSSID in "XX:XX:XX:XX:XX:XX" format.
frequency_mhz: u32Operating frequency in MHz.
max_bitrate_kbps: u32Maximum supported bitrate in Kbit/s.
strength: u8Signal strength percentage (0–100).
mode: ApModeAP operating mode.
security: SecurityFeaturesDecoded security capabilities.
last_seen_secs: Option<i64>Monotonic seconds since boot when last seen, or None if never.
is_active: booltrue if this AP is the active connection on device_path.
device_state: DeviceStateState of the wireless device at enumeration time (not live).
Trait Implementations§
Source§impl Clone for AccessPoint
impl Clone for AccessPoint
Source§fn clone(&self) -> AccessPoint
fn clone(&self) -> AccessPoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessPoint
impl Debug for AccessPoint
Source§impl PartialEq for AccessPoint
impl PartialEq for AccessPoint
Source§fn eq(&self, other: &AccessPoint) -> bool
fn eq(&self, other: &AccessPoint) -> bool
self and other values to be equal, and is used by ==.