atspi_proxies/
bus.rs

1//! # `DBus` interface proxies for: `org.a11y.Status`, `org.a11y.Bus`
2//!
3//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
4//! Source: `Interface '/org/a11y/bus' from service 'org.a11y.Bus' on session bus`.
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//! This `DBus` object implements
13//! [standard `DBus` interfaces](https://dbus.freedesktop.org/doc/dbus-specification.html),
14//! (`org.freedesktop.DBus.*`) for which the following zbus proxies can be used:
15//!
16//! * [`zbus::fdo::PropertiesProxy`]
17//! * [`zbus::fdo::IntrospectableProxy`]
18//! * [`zbus::fdo::PeerProxy`]
19//!
20//! …consequently `zbus-xmlgen` did not generate code for the above interfaces.
21
22use zbus::dbus_proxy;
23
24#[dbus_proxy(
25	interface = "org.a11y.Status",
26	default_service = "org.a11y.Bus",
27	default_path = "/org/a11y/bus"
28)]
29trait Status {
30	/// IsEnabled property
31	#[dbus_proxy(property)]
32	fn is_enabled(&self) -> zbus::Result<bool>;
33	#[dbus_proxy(property)]
34	fn set_is_enabled(&self, value: bool) -> zbus::Result<()>;
35
36	/// ScreenReaderEnabled property
37	#[dbus_proxy(property)]
38	fn screen_reader_enabled(&self) -> zbus::Result<bool>;
39	#[dbus_proxy(property)]
40	fn set_screen_reader_enabled(&self, value: bool) -> zbus::Result<()>;
41}
42
43#[dbus_proxy(
44	interface = "org.a11y.Bus",
45	default_service = "org.a11y.Bus",
46	default_path = "/org/a11y/bus"
47)]
48trait Bus {
49	/// GetAddress method
50	fn get_address(&self) -> zbus::Result<String>;
51}