Skip to main content

parse_system_state

Function parse_system_state 

Source
pub fn parse_system_state(system_state: &str) -> SystemdSystemState
Expand description

Map systemd’s system state string to our enum.

Shared by the D-Bus SystemState property and the varlink io.systemd.Manager.Describe runtime field, which use the same vocabulary.