1 | //! # `DBus` interface proxy for: `org.a11y.atspi.Registry` |
2 | //! |
3 | //! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data. |
4 | //! Source: `Registry.xml`. |
5 | //! |
6 | //! You may prefer to adapt it, instead of using it verbatim. |
7 | //! |
8 | //! More information can be found in the |
9 | //! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html) |
10 | //! section of the zbus documentation. |
11 | //! |
12 | |
13 | use zbus::names::OwnedBusName; |
14 | |
15 | #[zbus::proxy ( |
16 | interface = "org.a11y.atspi.Registry" , |
17 | default_service = "org.a11y.atspi.Registry" , |
18 | default_path = "/org/a11y/atspi/registry" |
19 | )] |
20 | trait Registry { |
21 | /// DeregisterEvent method |
22 | fn deregister_event(&self, event: &str) -> zbus::Result<()>; |
23 | |
24 | /// GetRegisteredEvents method |
25 | #[zbus(name = "GetRegisteredEvents" )] |
26 | fn registered_events(&self) -> zbus::Result<Vec<(OwnedBusName, String)>>; |
27 | |
28 | /// RegisterEvent method |
29 | fn register_event(&self, event: &str) -> zbus::Result<()>; |
30 | } |
31 | |