//! # D-Bus interface proxy for: `org.freedesktop.Notifications` //! //! This code was generated by `zbus-xmlgen` `4.1.0` from D-Bus introspection data. //! Source: `Interface '/org/freedesktop/Notifications' from service 'org.freedesktop.Notifications' 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] section of the zbus //! documentation. //! //! This type implements the [D-Bus standard interfaces], (`org.freedesktop.DBus.*`) for which the //! following zbus API can be used: //! //! * [`zbus::fdo::PropertiesProxy`] //! * [`zbus::fdo::IntrospectableProxy`] //! * [`zbus::fdo::PeerProxy`] //! //! Consequently `zbus-xmlgen` did not generate code for the above interfaces. //! //! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html //! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces, use zbus::proxy; #[proxy( interface = "org.freedesktop.Notifications", default_service = "org.freedesktop.Notifications", default_path = "/org/freedesktop/Notifications" )] trait Notifications { /// CloseNotification method fn close_notification(&self, id: u32) -> zbus::Result<()>; /// GetCapabilities method fn get_capabilities(&self) -> zbus::Result>; /// GetServerInformation method fn get_server_information(&self) -> zbus::Result<(String, String, String, String)>; /// Notify method #[allow(clippy::too_many_arguments)] fn notify( &self, app_name: &str, replaces_id: u32, app_icon: &str, summary: &str, body: &str, actions: &[&str], hints: std::collections::HashMap<&str, &zbus::zvariant::Value<'_>>, expire_timeout: i32, ) -> zbus::Result; /// ActionInvoked signal #[zbus(signal)] fn action_invoked(&self, id: u32, action_key: &str) -> zbus::Result<()>; /// NotificationClosed signal #[zbus(signal)] fn notification_closed(&self, id: u32, reason: u32) -> zbus::Result<()>; }