Expand description
A pure-Rust library to interact with systemd DBus services.
§Async executor
This library internally uses zbus without any default Cargo features.
That means that you have to decide which async executor to use, by enabling one of the following Cargo features:
zbus-async-smol: internally uses thesmolexecutor (enabling theasync-iofeature inzbus).zbus-async-tokio: internally uses thetokioexecutor (enabling thetokiofeature inzbus).
§Auto-generated services
Each service has its own dedicated module, which is auto-generated from current systemd definitions and can be activated through the corresponding Cargo feature:
home1: systemd-homed interfaceshostname1: systemd-hostnamed interfacesimport1: systemd-importd interfaceslocale1: systemd-localed interfaceslogin1: systemd-logind interfacesmachine1: systemd-machined interfacesnetwork1: systemd-networkd interfacesoom1: systemd-oomd interfacesportable1: systemd-portabled interfacesresolve1: systemd-resolved interfacessystemd1: systemd interfacessysupdate1: systemd-sysupdated interfacestimedate1: systemd-timedated interfacestimesync1: systemd-timesyncd interfaces
Re-exports§
Modules§
- home1
home1 - D-Bus interface for systemd-homed (org.freedesktop.home1).
- hostname1
hostname1 - D-Bus interface for systemd-hostnamed (org.freedesktop.hostname1).
- import1
import1 - D-Bus interface for systemd-importd (org.freedesktop.import1).
- locale1
locale1 - D-Bus interface for systemd-localed (org.freedesktop.locale1).
- login1
login1 - D-Bus interface for systemd-logind (org.freedesktop.login1).
- machine1
machine1 - D-Bus interface for systemd-machined (org.freedesktop.machine1).
- network1
network1 - D-Bus interface for systemd-networkd (org.freedesktop.network1).
- oom1
oom1 - D-Bus interface for systemd-oomd (org.freedesktop.oom1).
- portable1
portable1 - D-Bus interface for systemd-portabled (org.freedesktop.portable1).
- resolve1
resolve1 - D-Bus interface for systemd-resolved (org.freedesktop.resolve1).
- systemd1
systemd1 - D-Bus interface for systemd (org.freedesktop.systemd1).
- sysupdate1
sysupdate1 - D-Bus interface for systemd-sysupdated (org.freedesktop.sysupdate1).
- timedate1
timedate1 - D-Bus interface for systemd-timedated (org.freedesktop.timedate1).
- timesync1
timesync1 - D-Bus interface for systemd-timesyncd (org.freedesktop.timesync1).
Functions§
- bus_
label_ escape - Escape a label for use in a D-Bus object path.
- bus_
label_ unescape - Unescape a label from a D-Bus object path.
- bus_
path_ decode - Convert an object path into an external identifier.
- bus_
path_ encode - Convert an external identifier into an object path.
- unit_
name_ escape - Escape a unit name
- unit_
name_ unescape - Unescape a unit name