tokio-dbus
An asynchronous D-Bus implementation for the Tokio ecosystem.
So far this is a fairly low-level implementation, but is sufficient to write efficient servers without some of the flair associated with other clients (like proxies generated from xml).
To currently see how it's used, see:
- examples/client.rs
- examples/server.rs
- examples/systray.rs,
a systray icon with a menu, implementing
org.kde.StatusNotifierItemandcom.canonical.dbusmenu. - examples/notification.rs,
sending a desktop notification through
org.freedesktop.Notifications.
Both of those have a counterpart which does the same thing through bindings
generated from an interface file by tokio-dbus-codegen, driven by
tokio-dbus-runtime:
examples/systray_codegen.rs
and
examples/notification_codegen.rs.