feat: zbus 4.2.1 update

This commit is contained in:
Ashley Wulber 2024-05-16 15:24:53 -04:00 committed by GitHub
parent ce9c789fe6
commit f05789c4ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 390 additions and 389 deletions

View file

@ -20,50 +20,50 @@
//!
//! …consequently `zbus-xmlgen` did not generate code for the above interfaces.
use zbus::dbus_proxy;
use zbus::proxy;
#[dbus_proxy(
#[proxy(
interface = "org.freedesktop.NetworkManager.AccessPoint",
default_service = "org.freedesktop.NetworkManager"
)]
trait AccessPoint {
/// Flags property
#[dbus_proxy(property)]
#[zbus(property)]
fn flags(&self) -> zbus::Result<u32>;
/// Frequency property
#[dbus_proxy(property)]
#[zbus(property)]
fn frequency(&self) -> zbus::Result<u32>;
/// HwAddress property
#[dbus_proxy(property)]
#[zbus(property)]
fn hw_address(&self) -> zbus::Result<String>;
/// LastSeen property
#[dbus_proxy(property)]
#[zbus(property)]
fn last_seen(&self) -> zbus::Result<i32>;
/// MaxBitrate property
#[dbus_proxy(property)]
#[zbus(property)]
fn max_bitrate(&self) -> zbus::Result<u32>;
/// Mode property
#[dbus_proxy(property)]
#[zbus(property)]
fn mode(&self) -> zbus::Result<u32>;
/// RsnFlags property
#[dbus_proxy(property)]
#[zbus(property)]
fn rsn_flags(&self) -> zbus::Result<u32>;
/// Ssid property
#[dbus_proxy(property)]
#[zbus(property)]
fn ssid(&self) -> zbus::Result<Vec<u8>>;
/// Strength property
#[dbus_proxy(property)]
#[zbus(property)]
fn strength(&self) -> zbus::Result<u8>;
/// WpaFlags property
#[dbus_proxy(property)]
#[zbus(property)]
fn wpa_flags(&self) -> zbus::Result<u32>;
}