// SPDX-License-Identifier: MPL-2.0 //! # DBus interface proxy for: `org.freedesktop.NetworkManager` //! //! This code was generated by `zbus-xmlgen` `2.0.0` from DBus introspection data. //! Source: `Interface '/org/freedesktop/NetworkManager' 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. pub mod access_point; pub mod config; pub mod connection; pub mod device; pub mod enums; pub mod settings; pub mod statistics; use zbus::dbus_proxy; #[dbus_proxy( interface = "org.freedesktop.NetworkManager", default_service = "org.freedesktop.NetworkManager", default_path = "/org/freedesktop/NetworkManager" )] pub trait NetworkManager { /// ActivateConnection method fn activate_connection( &self, connection: &zbus::zvariant::ObjectPath<'_>, device: &zbus::zvariant::ObjectPath<'_>, specific_object: &zbus::zvariant::ObjectPath<'_>, ) -> zbus::Result; /// AddAndActivateConnection method fn add_and_activate_connection( &self, connection: std::collections::HashMap< &str, std::collections::HashMap<&str, zbus::zvariant::Value<'_>>, >, device: &zbus::zvariant::ObjectPath<'_>, specific_object: &zbus::zvariant::ObjectPath<'_>, ) -> zbus::Result<( zbus::zvariant::OwnedObjectPath, zbus::zvariant::OwnedObjectPath, )>; /// AddAndActivateConnection2 method fn add_and_activate_connection2( &self, connection: std::collections::HashMap< &str, std::collections::HashMap<&str, zbus::zvariant::Value<'_>>, >, device: &zbus::zvariant::ObjectPath<'_>, specific_object: &zbus::zvariant::ObjectPath<'_>, options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>, ) -> zbus::Result<( zbus::zvariant::OwnedObjectPath, zbus::zvariant::OwnedObjectPath, std::collections::HashMap, )>; /// CheckConnectivity method fn check_connectivity(&self) -> zbus::Result; /// CheckpointAdjustRollbackTimeout method fn checkpoint_adjust_rollback_timeout( &self, checkpoint: &zbus::zvariant::ObjectPath<'_>, add_timeout: u32, ) -> zbus::Result<()>; /// CheckpointCreate method fn checkpoint_create( &self, devices: &[zbus::zvariant::ObjectPath<'_>], rollback_timeout: u32, flags: u32, ) -> zbus::Result; /// CheckpointDestroy method fn checkpoint_destroy(&self, checkpoint: &zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>; /// CheckpointRollback method fn checkpoint_rollback( &self, checkpoint: &zbus::zvariant::ObjectPath<'_>, ) -> zbus::Result>; /// DeactivateConnection method fn deactivate_connection( &self, active_connection: &zbus::zvariant::ObjectPath<'_>, ) -> zbus::Result<()>; /// Enable method fn enable(&self, enable: bool) -> zbus::Result<()>; /// GetAllDevices method fn get_all_devices(&self) -> zbus::Result>; /// GetDeviceByIpIface method fn get_device_by_ip_iface(&self, iface: &str) -> zbus::Result; /// GetDevices method fn get_devices(&self) -> zbus::Result>; /// GetLogging method fn get_logging(&self) -> zbus::Result<(String, String)>; /// GetPermissions method fn get_permissions(&self) -> zbus::Result>; /// Reload method fn reload(&self, flags: u32) -> zbus::Result<()>; /// SetLogging method fn set_logging(&self, level: &str, domains: &str) -> zbus::Result<()>; /// Sleep method fn sleep(&self, sleep: bool) -> zbus::Result<()>; /// CheckPermissions signal #[dbus_proxy(signal)] fn check_permissions(&self) -> zbus::Result<()>; /// DeviceAdded signal #[dbus_proxy(signal)] fn device_added(&self, device_path: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>; /// DeviceRemoved signal #[dbus_proxy(signal)] fn device_removed(&self, device_path: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>; /// ActivatingConnection property #[dbus_proxy(property)] fn activating_connection(&self) -> zbus::Result; /// ActiveConnections property #[dbus_proxy(property)] fn active_connections(&self) -> zbus::Result>; /// AllDevices property #[dbus_proxy(property)] fn all_devices(&self) -> zbus::Result>; /// Capabilities property #[dbus_proxy(property)] fn capabilities(&self) -> zbus::Result>; /// Checkpoints property #[dbus_proxy(property)] fn checkpoints(&self) -> zbus::Result>; /// Connectivity property #[dbus_proxy(property)] fn connectivity(&self) -> zbus::Result; /// ConnectivityCheckAvailable property #[dbus_proxy(property)] fn connectivity_check_available(&self) -> zbus::Result; /// ConnectivityCheckEnabled property #[dbus_proxy(property)] fn connectivity_check_enabled(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_connectivity_check_enabled(&self, value: bool) -> zbus::Result<()>; /// ConnectivityCheckUri property #[dbus_proxy(property)] fn connectivity_check_uri(&self) -> zbus::Result; /// Devices property #[dbus_proxy(property)] fn devices(&self) -> zbus::Result>; /// GlobalDnsConfiguration property #[dbus_proxy(property)] fn global_dns_configuration( &self, ) -> zbus::Result>; #[dbus_proxy(property)] fn set_global_dns_configuration( &self, value: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>, ) -> zbus::Result<()>; /// Metered property #[dbus_proxy(property)] fn metered(&self) -> zbus::Result; /// NetworkingEnabled property #[dbus_proxy(property)] fn networking_enabled(&self) -> zbus::Result; /// PrimaryConnection property #[dbus_proxy(property)] fn primary_connection(&self) -> zbus::Result; /// PrimaryConnectionType property #[dbus_proxy(property)] fn primary_connection_type(&self) -> zbus::Result; /// Startup property #[dbus_proxy(property)] fn startup(&self) -> zbus::Result; /// State property #[dbus_proxy(property)] fn state(&self) -> zbus::Result; /// Version property #[dbus_proxy(property)] fn version(&self) -> zbus::Result; /// WimaxEnabled property #[dbus_proxy(property)] fn wimax_enabled(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_wimax_enabled(&self, value: bool) -> zbus::Result<()>; /// WimaxHardwareEnabled property #[dbus_proxy(property)] fn wimax_hardware_enabled(&self) -> zbus::Result; /// WirelessEnabled property #[dbus_proxy(property)] fn wireless_enabled(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_wireless_enabled(&self, value: bool) -> zbus::Result<()>; /// WirelessHardwareEnabled property #[dbus_proxy(property)] fn wireless_hardware_enabled(&self) -> zbus::Result; /// WwanEnabled property #[dbus_proxy(property)] fn wwan_enabled(&self) -> zbus::Result; #[dbus_proxy(property)] fn set_wwan_enabled(&self, value: bool) -> zbus::Result<()>; /// WwanHardwareEnabled property #[dbus_proxy(property)] fn wwan_hardware_enabled(&self) -> zbus::Result; }