Skip to main content

Module unit

Module unit 

Source
Expand description

Varlink proxy for the io.systemd.Unit interface on PID 1’s socket. Adapted from the interface definition in systemd’s src/core/varlink-unit.c. The List method exists from v258, but the per-type context sections monitord reads land later: src/core/varlink-service.c and src/core/varlink-timer.c first appear in v261, so that is the real minimum for anything here.

Only the fields monitord maps onto its own stats types are declared; serde drops the rest, which is most of a ~7KB per-unit reply.

Note that systemd omits fields sitting at their default rather than sending a zero, so almost everything here is optional and the caller supplies the default (see varlink_units, where those defaults have to match what the D-Bus properties return for the same unit).

Structs§

CGroupRuntime
cgroup accounting for a unit. Fields appear only when the matching accounting option is enabled for the unit.
ExecContext
Execution configuration shared by every unit type that runs processes.
ListOutput
Output parameters for the List method.
ProcessId
A process reference, carrying the pid plus fields that disambiguate reuse.
ServiceContext
Service-specific configuration.
ServiceRuntime
Service-specific runtime state.
TimerContext
Timer-specific configuration.
TimerRuntime
Timer-specific runtime state.
Timestamp
A systemd timestamp, carrying both clocks.
UnitContext
Configuration of a unit.
UnitRuntime
Runtime state of a unit.

Enums§

UnitError
Errors that can occur in the io.systemd.Unit interface.

Traits§

Unit
Proxy trait for calling methods on the io.systemd.Unit interface.
UnitChain
Extension trait for adding proxy calls to any chain.