dbus-settings-bindings/networkmanager/src/interface/device/wireless.rs
2022-01-11 12:31:29 -05:00

81 lines
2.6 KiB
Rust

// SPDX-License-Identifier: MPL-2.0
//! # DBus interface proxies for: `org.freedesktop.NetworkManager.Device.Wireless`
//!
//! This code was generated by `zbus-xmlgen` `2.0.0` from DBus introspection data.
//! Source: `Interface '/org/freedesktop/NetworkManager/Devices/3' from service 'org.freedesktop.NetworkManager' on system bus`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the
//! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html)
//! section of the zbus documentation.
//!
//! This DBus object implements
//! [standard DBus interfaces](https://dbus.freedesktop.org/doc/dbus-specification.html),
//! (`org.freedesktop.DBus.*`) for which the following zbus proxies can be used:
//!
//! * [`zbus::fdo::PropertiesProxy`]
//! * [`zbus::fdo::IntrospectableProxy`]
//! * [`zbus::fdo::PeerProxy`]
//!
//! …consequently `zbus-xmlgen` did not generate code for the above interfaces.
use zbus::dbus_proxy;
#[dbus_proxy(interface = "org.freedesktop.NetworkManager.Device.Wireless")]
pub trait Wireless {
/// GetAccessPoints method
fn get_access_points(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
/// GetAllAccessPoints method
fn get_all_access_points(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
/// RequestScan method
fn request_scan(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
/// AccessPointAdded signal
#[dbus_proxy(signal)]
fn access_point_added(&self, access_point: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
/// AccessPointRemoved signal
#[dbus_proxy(signal)]
fn access_point_removed(
&self,
access_point: zbus::zvariant::ObjectPath<'_>,
) -> zbus::Result<()>;
/// AccessPoints property
#[dbus_proxy(property)]
fn access_points(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
/// ActiveAccessPoint property
#[dbus_proxy(property)]
fn active_access_point(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// Bitrate property
#[dbus_proxy(property)]
fn bitrate(&self) -> zbus::Result<u32>;
/// HwAddress property
#[dbus_proxy(property)]
fn hw_address(&self) -> zbus::Result<String>;
/// LastScan property
#[dbus_proxy(property)]
fn last_scan(&self) -> zbus::Result<i64>;
/// Mode property
#[dbus_proxy(property)]
fn mode(&self) -> zbus::Result<u32>;
/// PermHwAddress property
#[dbus_proxy(property)]
fn perm_hw_address(&self) -> zbus::Result<String>;
/// WirelessCapabilities property
#[dbus_proxy(property)]
fn wireless_capabilities(&self) -> zbus::Result<u32>;
}