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,68 +20,68 @@
//!
//! …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.IP4Config",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait Ipv4Config {
/// AddressData property
#[dbus_proxy(property)]
#[zbus(property)]
fn address_data(
&self,
) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
/// Addresses property
#[dbus_proxy(property)]
#[zbus(property)]
fn addresses(&self) -> zbus::Result<Vec<Vec<u32>>>;
/// DnsOptions property
#[dbus_proxy(property)]
#[zbus(property)]
fn dns_options(&self) -> zbus::Result<Vec<String>>;
/// DnsPriority property
#[dbus_proxy(property)]
#[zbus(property)]
fn dns_priority(&self) -> zbus::Result<i32>;
/// Domains property
#[dbus_proxy(property)]
#[zbus(property)]
fn domains(&self) -> zbus::Result<Vec<String>>;
/// Gateway property
#[dbus_proxy(property)]
#[zbus(property)]
fn gateway(&self) -> zbus::Result<String>;
/// NameserverData property
#[dbus_proxy(property)]
#[zbus(property)]
fn nameserver_data(
&self,
) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
/// Nameservers property
#[dbus_proxy(property)]
#[zbus(property)]
fn nameservers(&self) -> zbus::Result<Vec<u32>>;
/// RouteData property
#[dbus_proxy(property)]
#[zbus(property)]
fn route_data(
&self,
) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
/// Routes property
#[dbus_proxy(property)]
#[zbus(property)]
fn routes(&self) -> zbus::Result<Vec<Vec<u32>>>;
/// Searches property
#[dbus_proxy(property)]
#[zbus(property)]
fn searches(&self) -> zbus::Result<Vec<String>>;
/// WinsServerData property
#[dbus_proxy(property)]
#[zbus(property)]
fn wins_server_data(&self) -> zbus::Result<Vec<String>>;
/// WinsServers property
#[dbus_proxy(property)]
#[zbus(property)]
fn wins_servers(&self) -> zbus::Result<Vec<u32>>;
}

View file

@ -20,54 +20,54 @@
//!
//! …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.IP6Config",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait Ipv6Config {
/// AddressData property
#[dbus_proxy(property)]
#[zbus(property)]
fn address_data(
&self,
) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
/// Addresses property
#[dbus_proxy(property)]
#[zbus(property)]
fn addresses(&self) -> zbus::Result<Vec<(Vec<u8>, u32, Vec<u8>)>>;
/// DnsOptions property
#[dbus_proxy(property)]
#[zbus(property)]
fn dns_options(&self) -> zbus::Result<Vec<String>>;
/// DnsPriority property
#[dbus_proxy(property)]
#[zbus(property)]
fn dns_priority(&self) -> zbus::Result<i32>;
/// Domains property
#[dbus_proxy(property)]
#[zbus(property)]
fn domains(&self) -> zbus::Result<Vec<String>>;
/// Gateway property
#[dbus_proxy(property)]
#[zbus(property)]
fn gateway(&self) -> zbus::Result<String>;
/// Nameservers property
#[dbus_proxy(property)]
#[zbus(property)]
fn nameservers(&self) -> zbus::Result<Vec<Vec<u8>>>;
/// RouteData property
#[dbus_proxy(property)]
#[zbus(property)]
fn route_data(
&self,
) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
/// Routes property
#[dbus_proxy(property)]
#[zbus(property)]
fn routes(&self) -> zbus::Result<Vec<(Vec<u8>, u32, Vec<u8>, u32)>>;
/// Searches property
#[dbus_proxy(property)]
#[zbus(property)]
fn searches(&self) -> zbus::Result<Vec<String>>;
}