You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/systemd.rs
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ use zbus::{proxy, zvariant, Connection};
11
11
12
12
#[derive(Debug,Clone)]
13
13
pubstructUnitWithStatus{
14
-
pubname:String,// The primary unit name as string
15
-
pubscope:UnitScope,// System or user?
16
-
pubdescription:String,// The human readable description string
17
-
pubfile_path:Option<String>,// The unit file path - populated later on demand
14
+
pubname:String,// The primary unit name as string
15
+
pubscope:UnitScope,// System or user?
16
+
pubdescription:String,// The human readable description string
17
+
pubfile_path:Option<Result<String,String>>,// The unit file path - populated later on demand
18
18
19
19
pubload_state:String,// The load state (i.e. whether the unit file has been loaded successfully)
20
20
@@ -27,7 +27,6 @@ pub struct UnitWithStatus {
27
27
/// The other state all units have is called the "enablement state". It describes how the unit might be automatically started in the future. A unit is enabled if it has been added to the requirements list of any other unit though symlinks in the filesystem. The set of symlinks to be created when enabling a unit is described by the unit's [Install] section. A unit is disabled if no symlinks are present. Again there's a variety of other values other than these two (e.g. not all units even have [Install] sections).
28
28
/// Only populated when needed b/c this is much slower to get
29
29
pubenablement_state:Option<String>,
30
-
31
30
// We don't use any of these right now, might as well skip'em so there's less data to clone
32
31
// pub followed: String, // A unit that is being followed in its state by this unit, if there is any, otherwise the empty string.
0 commit comments