Update to zbus 5.x
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`.
This commit is contained in:
parent
ac5713df52
commit
3b86984332
26 changed files with 30 additions and 32 deletions
|
|
@ -20,7 +20,7 @@
|
|||
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
|
||||
use zbus::proxy;
|
||||
#[proxy(interface = "org.bluez.Adapter1", default_service = "org.bluez")]
|
||||
trait Adapter1 {
|
||||
pub trait Adapter1 {
|
||||
/// ConnectDevice method
|
||||
fn connect_device(
|
||||
&self,
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use zbus::proxy;
|
|||
default_service = "org.bluez",
|
||||
default_path = "/org/bluez"
|
||||
)]
|
||||
trait AgentManager1 {
|
||||
pub trait AgentManager1 {
|
||||
/// RegisterAgent method
|
||||
fn register_agent(
|
||||
&self,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
|
||||
use zbus::proxy;
|
||||
#[proxy(interface = "org.bluez.Battery1", default_service = "org.bluez")]
|
||||
trait Battery1 {
|
||||
pub trait Battery1 {
|
||||
/// Percentage property
|
||||
#[zbus(property)]
|
||||
fn percentage(&self) -> zbus::Result<u8>;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
//! [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")]
|
||||
trait Device1 {
|
||||
pub trait Device1 {
|
||||
/// CancelPairing method
|
||||
fn cancel_pairing(&self) -> zbus::Result<()>;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use zbus::proxy;
|
|||
default_service = "org.bluez",
|
||||
default_path = "/org/bluez"
|
||||
)]
|
||||
trait HealthManager1 {
|
||||
pub trait HealthManager1 {
|
||||
/// CreateApplication method
|
||||
fn create_application(
|
||||
&self,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use zbus::proxy;
|
|||
default_service = "org.bluez",
|
||||
default_path = "/org/bluez"
|
||||
)]
|
||||
trait ProfileManager1 {
|
||||
pub trait ProfileManager1 {
|
||||
/// RegisterProfile method
|
||||
fn register_profile(
|
||||
&self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue