1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! NetworkManager Access Point interface.
use zbus::proxy;
#[proxy(
default_service = "org.freedesktop.NetworkManager",
interface = "org.freedesktop.NetworkManager.AccessPoint"
)]
pub(crate) trait AccessPoint {
/// Flags describing the capabilities of the access point.
#[zbus(property)]
fn flags(&self) -> zbus::Result<u32>;
/// Flags describing the access point's capabilities according to WPA.
#[zbus(property)]
fn wpa_flags(&self) -> zbus::Result<u32>;
/// Flags describing the access point's capabilities according to the RSN protocol.
#[zbus(property)]
fn rsn_flags(&self) -> zbus::Result<u32>;
/// The Service Set Identifier identifying the access point.
#[zbus(property)]
fn ssid(&self) -> zbus::Result<Vec<u8>>;
/// The radio channel frequency in use by the access point, in MHz.
#[zbus(property)]
fn frequency(&self) -> zbus::Result<u32>;
/// The hardware address (BSSID) of the access point.
#[zbus(property)]
fn hw_address(&self) -> zbus::Result<String>;
/// Describes the operating mode of the access point.
#[zbus(property)]
fn mode(&self) -> zbus::Result<u32>;
/// The maximum bitrate this access point is capable of, in kilobits/second (Kb/s).
#[zbus(property)]
fn max_bitrate(&self) -> zbus::Result<u32>;
/// The bandwidth announced by the access point in MHz.
#[zbus(property)]
fn bandwidth(&self) -> zbus::Result<u32>;
/// The current signal quality of the access point, in percent.
#[zbus(property)]
fn strength(&self) -> zbus::Result<u8>;
/// The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results.
#[zbus(property)]
fn last_seen(&self) -> zbus::Result<i32>;
}