https://github.com/dbus2/zbus/releases/tag/zbus-5.0.0 Now requires `pub` on uses of `#[proxy]` if the generated types should be `pub`.
149 lines
4 KiB
Rust
149 lines
4 KiB
Rust
#![allow(non_snake_case)]
|
|
|
|
//! # D-Bus interface proxy for: `org.bluez.Device1`
|
|
//!
|
|
//! This code was generated by `zbus-xmlgen` `4.1.0` from D-Bus introspection data.
|
|
//! Source: `Interface '/org/bluez/hci0/dev_14_3F_A6_A8_16_68' from service 'org.bluez' 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::IntrospectableProxy`]
|
|
//! * [`zbus::fdo::PropertiesProxy`]
|
|
//!
|
|
//! 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.bluez.Device1", default_service = "org.bluez")]
|
|
pub trait Device1 {
|
|
/// CancelPairing method
|
|
fn cancel_pairing(&self) -> zbus::Result<()>;
|
|
|
|
/// Connect method
|
|
fn connect(&self) -> zbus::Result<()>;
|
|
|
|
/// ConnectProfile method
|
|
fn connect_profile(&self, UUID: &str) -> zbus::Result<()>;
|
|
|
|
/// Disconnect method
|
|
fn disconnect(&self) -> zbus::Result<()>;
|
|
|
|
/// DisconnectProfile method
|
|
fn disconnect_profile(&self, UUID: &str) -> zbus::Result<()>;
|
|
|
|
/// Pair method
|
|
fn pair(&self) -> zbus::Result<()>;
|
|
|
|
/// Adapter property
|
|
#[zbus(property)]
|
|
fn adapter(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
|
|
|
/// Address property
|
|
#[zbus(property)]
|
|
fn address(&self) -> zbus::Result<String>;
|
|
|
|
/// AddressType property
|
|
#[zbus(property)]
|
|
fn address_type(&self) -> zbus::Result<String>;
|
|
|
|
/// AdvertisingData property
|
|
#[zbus(property)]
|
|
fn advertising_data(
|
|
&self,
|
|
) -> zbus::Result<std::collections::HashMap<u8, zbus::zvariant::OwnedValue>>;
|
|
|
|
/// AdvertisingFlags property
|
|
#[zbus(property)]
|
|
fn advertising_flags(&self) -> zbus::Result<Vec<u8>>;
|
|
|
|
/// Alias property
|
|
#[zbus(property)]
|
|
fn alias(&self) -> zbus::Result<String>;
|
|
#[zbus(property)]
|
|
fn set_alias(&self, value: &str) -> zbus::Result<()>;
|
|
|
|
/// Appearance property
|
|
#[zbus(property)]
|
|
fn appearance(&self) -> zbus::Result<u16>;
|
|
|
|
/// Blocked property
|
|
#[zbus(property)]
|
|
fn blocked(&self) -> zbus::Result<bool>;
|
|
#[zbus(property)]
|
|
fn set_blocked(&self, value: bool) -> zbus::Result<()>;
|
|
|
|
/// Class property
|
|
#[zbus(property)]
|
|
fn class(&self) -> zbus::Result<u32>;
|
|
|
|
/// Connected property
|
|
#[zbus(property)]
|
|
fn connected(&self) -> zbus::Result<bool>;
|
|
|
|
/// Icon property
|
|
#[zbus(property)]
|
|
fn icon(&self) -> zbus::Result<String>;
|
|
|
|
/// LegacyPairing property
|
|
#[zbus(property)]
|
|
fn legacy_pairing(&self) -> zbus::Result<bool>;
|
|
|
|
/// ManufacturerData property
|
|
#[zbus(property)]
|
|
fn manufacturer_data(
|
|
&self,
|
|
) -> zbus::Result<std::collections::HashMap<u16, zbus::zvariant::OwnedValue>>;
|
|
|
|
/// Modalias property
|
|
#[zbus(property)]
|
|
fn modalias(&self) -> zbus::Result<String>;
|
|
|
|
/// Name property
|
|
#[zbus(property)]
|
|
fn name(&self) -> zbus::Result<String>;
|
|
|
|
/// Paired property
|
|
#[zbus(property)]
|
|
fn paired(&self) -> zbus::Result<bool>;
|
|
|
|
/// RSSI property
|
|
#[zbus(property, name = "RSSI")]
|
|
fn rssi(&self) -> zbus::Result<i16>;
|
|
|
|
/// ServiceData property
|
|
#[zbus(property)]
|
|
fn service_data(
|
|
&self,
|
|
) -> zbus::Result<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>;
|
|
|
|
/// ServicesResolved property
|
|
#[zbus(property)]
|
|
fn services_resolved(&self) -> zbus::Result<bool>;
|
|
|
|
/// Trusted property
|
|
#[zbus(property)]
|
|
fn trusted(&self) -> zbus::Result<bool>;
|
|
#[zbus(property)]
|
|
fn set_trusted(&self, value: bool) -> zbus::Result<()>;
|
|
|
|
/// TxPower property
|
|
#[zbus(property)]
|
|
fn tx_power(&self) -> zbus::Result<i16>;
|
|
|
|
/// UUIDs property
|
|
#[zbus(property, name = "UUIDs")]
|
|
fn uuids(&self) -> zbus::Result<Vec<String>>;
|
|
|
|
/// WakeAllowed property
|
|
#[zbus(property)]
|
|
fn wake_allowed(&self) -> zbus::Result<bool>;
|
|
#[zbus(property)]
|
|
fn set_wake_allowed(&self, value: bool) -> zbus::Result<()>;
|
|
}
|