1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
//! # `DBus` interface proxies for: `org.a11y.Status`, `org.a11y.Bus`
//!
//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
//! Source: `Interface '/org/a11y/bus' from service 'org.a11y.Bus' on session 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.
#[zbus::proxy(
interface = "org.a11y.Status",
default_service = "org.a11y.Bus",
default_path = "/org/a11y/bus"
)]
trait Status {
/// IsEnabled property
#[zbus(property)]
fn is_enabled(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn set_is_enabled(&self, value: bool) -> zbus::Result<()>;
/// ScreenReaderEnabled property
#[zbus(property)]
fn screen_reader_enabled(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn set_screen_reader_enabled(&self, value: bool) -> zbus::Result<()>;
}
#[zbus::proxy(
interface = "org.a11y.Bus",
default_service = "org.a11y.Bus",
default_path = "/org/a11y/bus"
)]
trait Bus {
/// GetAddress method
fn get_address(&self) -> zbus::Result<String>;
}