1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
//! # D-Bus interface proxy for: `org.freedesktop.systemd1.Manager`
//!
//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
//! Source: `Interface '/org/freedesktop/systemd1' from service 'org.freedesktop.systemd1' on system bus`.
//!
//! More information can be found in the [Writing a client proxy] section of the zbus
//! documentation.
//!
//! This type implements the [D-Bus standard interfaces], (`org.freedesktop.DBus.*`) for which the
//! following zbus API can be used:
//!
//! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
use zbus::proxy;
#[proxy(
interface = "org.freedesktop.systemd1.Manager",
default_service = "org.freedesktop.systemd1",
default_path = "/org/freedesktop/systemd1"
)]
pub trait Manager {
/// AbandonScope method
fn abandon_scope(&self, name: &str) -> zbus::Result<()>;
/// AddDependencyUnitFiles method
fn add_dependency_unit_files(
&self,
files: &[&str],
target: &str,
type_: &str,
runtime: bool,
force: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// AttachProcessesToUnit method
fn attach_processes_to_unit(
&self,
unit_name: &str,
subcgroup: &str,
pids: &[u32],
) -> zbus::Result<()>;
/// # BindMountUnit()
/// ## METHOD
/// Can be used to bind mount new files or directories into a running service mount namespace.
fn bind_mount_unit(
&self,
name: &str,
source: &str,
destination: &str,
read_only: bool,
mkdir: bool,
) -> zbus::Result<()>;
/// # CancelJob()
/// ## METHOD
/// Cancels a specific job identified by its numeric ID. This operation is also available in the Cancel() method of Job objects (see below) and exists primarily to reduce the necessary round trips to execute this
/// operation. Note that this will not have any effect on jobs whose execution has already begun.
fn cancel_job(&self, id: u32) -> zbus::Result<()>;
/// CleanUnit method
fn clean_unit(&self, name: &str, mask: &[&str]) -> zbus::Result<()>;
/// # ClearJobs()
/// ## METHOD
/// Flushes the job queue, removing all jobs that are still queued.
/// Note that this does not have any effect on jobs whose execution has already begun.
/// It only flushes jobs that are queued and have not yet begun execution.
fn clear_jobs(&self) -> zbus::Result<()>;
/// # DisableUnitFiles()
/// ## METHOD
/// Disables one or more units in the system, i.e. removes all symlinks to them in /etc/ and /run/.
fn disable_unit_files(
&self,
files: &[&str],
runtime: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// # DisableUnitFilesWithFlags()
/// ## METHOD
/// The EnableUnitFilesWithFlags() and DisableUnitFilesWithFlags() take in options as flags instead of booleans to allow for extendability, defined as follows:
///
/// #define SD_SYSTEMD_UNIT_RUNTIME (UINT64_C(1) << 0)
/// #define SD_SYSTEMD_UNIT_FORCE (UINT64_C(1) << 1)
/// #define SD_SYSTEMD_UNIT_PORTABLE (UINT64_C(1) << 2)
///
/// SD_SYSTEMD_UNIT_RUNTIME will enable or disable the unit for runtime only, SD_SYSTEMD_UNIT_FORCE controls whether symlinks pointing to other units shall be replaced
/// if necessary. SD_SYSTEMD_UNIT_PORTABLE will add or remove the symlinks in /etc/systemd/system.attached and /run/systemd/system.attached.
fn disable_unit_files_with_flags(
&self,
files: &[&str],
flags: u64,
) -> zbus::Result<Vec<(String, String, String)>>;
/// Dump method
fn dump(&self) -> zbus::Result<String>;
/// DumpByFileDescriptor method
fn dump_by_file_descriptor(&self) -> zbus::Result<zbus::zvariant::OwnedFd>;
/// # EnableUnitFiles()
/// ## METHOD
/// May be used to enable one or more units in the system (by creating symlinks to them in /etc/ or /run/). It takes a list of unit files to enable (either just file names or full
/// absolute paths if the unit files are residing outside the usual unit search paths) and two booleans: the first controls whether the unit shall be enabled for runtime only (true, /run/), or
/// persistently (false, /etc/). The second one controls whether symlinks pointing to other units shall be replaced if necessary. This method returns one boolean and an array of the changes made. The
/// boolean signals whether the unit files contained any enablement information (i.e. an [Install]) section. The changes array consists of structures with three strings: the type of the change (one of
/// "symlink" or "unlink"), the file name of the symlink and the destination of the symlink. Note that most of the following calls return a changes list in the same format.
///
/// Similarly, DisableUnitFiles() disables one or more units in the system, i.e. removes all symlinks to them in /etc/ and /run/.
///
/// The EnableUnitFilesWithFlags() and DisableUnitFilesWithFlags() take in options as flags instead of booleans to allow for extendability, defined as follows:
///
//[ #define SD_SYSTEMD_UNIT_RUNTIME (UINT64_C(1) << 0)
//[ #define SD_SYSTEMD_UNIT_FORCE (UINT64_C(1) << 1)
//[ #define SD_SYSTEMD_UNIT_PORTABLE (UINT64_C(1) << 2)
///
/// SD_SYSTEMD_UNIT_RUNTIME will enable or disable the unit for runtime only, SD_SYSTEMD_UNIT_FORCE controls whether symlinks pointing to other units shall be replaced if necessary.
/// SD_SYSTEMD_UNIT_PORTABLE will add or remove the symlinks in /etc/systemd/system.attached and /run/systemd/system.attached.
///
/// Similarly, ReenableUnitFiles() applies the changes to one or more units that would result from disabling and enabling the unit quickly one after the other in an atomic fashion. This is useful to apply
/// updated [Install] information contained in unit files.
///
/// Similarly, LinkUnitFiles() links unit files (that are located outside of the usual unit search paths) into the unit search path.
///
/// Similarly, PresetUnitFiles() enables/disables one or more unit files according to the preset policy. See systemd.preset(7) for more information.
///
/// Similarly, MaskUnitFiles() masks unit files and UnmaskUnitFiles() unmasks them again.
fn enable_unit_files(
&self,
files: &[&str],
runtime: bool,
force: bool,
) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
/// # EnableUnitFilesWithFlags()
/// ## METHOD
/// The EnableUnitFilesWithFlags() and DisableUnitFilesWithFlags() take in options as flags instead of booleans to allow for extendability, defined as follows:
///
/// #define SD_SYSTEMD_UNIT_RUNTIME (UINT64_C(1) << 0)
/// #define SD_SYSTEMD_UNIT_FORCE (UINT64_C(1) << 1)
/// #define SD_SYSTEMD_UNIT_PORTABLE (UINT64_C(1) << 2)
///
/// SD_SYSTEMD_UNIT_RUNTIME will enable or disable the unit for runtime only, SD_SYSTEMD_UNIT_FORCE controls whether symlinks pointing to other units shall be replaced
/// if necessary. SD_SYSTEMD_UNIT_PORTABLE will add or remove the symlinks in /etc/systemd/system.attached and /run/systemd/system.attached.
fn enable_unit_files_with_flags(
&self,
files: &[&str],
flags: u64,
) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
/// # EnqueueMarkedJobs()
/// ## METHOD
/// Creates reload/restart jobs for units which have been appropriately marked, see Marks property above. This is equivalent to calling TryRestartUnit() or ReloadOrTryRestartUnit() for the marked units.
fn enqueue_marked_jobs(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
/// EnqueueUnitJob method
#[allow(clippy::too_many_arguments)]
fn enqueue_unit_job(
&self,
name: &str,
job_type: &str,
job_mode: &str,
) -> zbus::Result<(
u32,
zbus::zvariant::OwnedObjectPath,
String,
zbus::zvariant::OwnedObjectPath,
String,
Vec<(
u32,
zbus::zvariant::OwnedObjectPath,
String,
zbus::zvariant::OwnedObjectPath,
String,
)>,
)>;
/// # Exit()
/// ## METHOD
/// May be invoked to ask the manager to exit. This is not available for the system manager and is useful only for user session managers.
fn exit(&self) -> zbus::Result<()>;
/// FreezeUnit method
fn freeze_unit(&self, name: &str) -> zbus::Result<()>;
/// # GetDefaultTarget()
/// ## METHOD
/// Retrieves the name of the unit to which default.target is aliased.
fn get_default_target(&self) -> zbus::Result<String>;
/// GetDynamicUsers method
fn get_dynamic_users(&self) -> zbus::Result<Vec<(u32, String)>>;
/// # GetJob()
/// ## METHOD
/// Returns the job object path for a specific job, identified by its id.
fn get_job(&self, id: u32) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// GetJobAfter method
fn get_job_after(
&self,
id: u32,
) -> zbus::Result<
Vec<(
u32,
String,
String,
String,
zbus::zvariant::OwnedObjectPath,
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// GetJobBefore method
fn get_job_before(
&self,
id: u32,
) -> zbus::Result<
Vec<(
u32,
String,
String,
String,
zbus::zvariant::OwnedObjectPath,
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// # GetUnit()
/// ## METHOD
/// May be used to get the unit object path for a unit name. It takes the unit name and returns
/// the object path. If a unit has not been loaded yet by this name this method will fail.
fn get_unit(&self, name: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # GetUnitByControlGroup()
/// ## METHOD
/// May be used to get the unit object path of the unit a process ID belongs to. It takes a
/// UNIX PID and returns the object path. The PID must refer to an existing system process.
fn get_unit_by_control_group(
&self,
cgroup: &str,
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// GetUnitByInvocationID method
#[zbus(name = "GetUnitByInvocationID")]
fn get_unit_by_invocation_id(
&self,
invocation_id: &[u8],
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// GetUnitByPID method
#[zbus(name = "GetUnitByPID")]
fn get_unit_by_pid(&self, pid: u32) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// GetUnitFileLinks method
fn get_unit_file_links(&self, name: &str, runtime: bool) -> zbus::Result<Vec<String>>;
/// # GetUnitFileState()
/// ## METHOD
/// Returns the current enablement status of a specific unit file.
fn get_unit_file_state(&self, file: &str) -> zbus::Result<String>;
/// GetUnitProcesses method
fn get_unit_processes(&self, name: &str) -> zbus::Result<Vec<(String, u32, String)>>;
/// Halt method
fn halt(&self) -> zbus::Result<()>;
/// KExec method
#[zbus(name = "KExec")]
fn kexec(&self) -> zbus::Result<()>;
/// # KillUnit()
/// ## METHOD
/// May be used to kill (i.e. send a signal to) all processes of a unit. It takes the unit name, an enum who and a UNIX signal number to send. The who enum is one of "main", "control" or "all". If "main", only the main
/// process of the unit is killed. If "control", only the control process of the unit is killed. If "all", all processes are killed. A "control" process is for example a process that is configured via ExecStop= and is spawned in
/// parallel to the main daemon process in order to shut it down.
fn kill_unit(&self, name: &str, whom: &str, signal: i32) -> zbus::Result<()>;
/// LinkUnitFiles method
fn link_unit_files(
&self,
files: &[&str],
runtime: bool,
force: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// # ListJobs()
/// ## METHOD
/// Returns an array with all currently queued jobs. Returns an array consisting of structures with the following elements:
/// • The numeric job id
/// • The primary unit name for this job
/// • The job type as string
/// • The job state as string
/// • The job object path
/// • The unit object path
fn list_jobs(
&self,
) -> zbus::Result<
Vec<(
u32,
String,
String,
String,
zbus::zvariant::OwnedObjectPath,
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// # ListUnitFiles()
/// ## METHOD
/// Returns an array of unit names and their enablement status. Note that ListUnit() returns a list of units currently loaded into memory, while ListUnitFiles() returns a list of unit
/// files that were found on disk. Note that while most units are read directly from a unit file with the same name, some units are not backed by files and some files (templates) cannot directly be loaded
/// as units but need to be instantiated instead.
fn list_unit_files(&self) -> zbus::Result<Vec<(String, String)>>;
/// ListUnitFilesByPatterns method
fn list_unit_files_by_patterns(
&self,
states: &[&str],
patterns: &[&str],
) -> zbus::Result<Vec<(String, String)>>;
/// # ListUnits()
/// ## METHOD
/// Returns an array of all currently loaded units. Note that units may be known by multiple names at the same name, and hence there might be more unit names loaded than actual units behind them. The array consists of
/// structures with the following elements:
/// • The human readable description string
/// • The load state (i.e. whether the unit file has been loaded successfully)
/// • The active state (i.e. whether the unit is currently started or not)
/// • The sub state (a more fine-grained version of the active state that is specific to the unit type, which the active state is not)
/// • A unit that is being followed in its state by this unit, if there is any, otherwise the empty string.
/// • The unit object path
/// • If there is a job queued for the job unit, the numeric job id, 0 otherwise
/// • The job type as string
/// • The job object path
fn list_units(
&self,
) -> zbus::Result<
Vec<(
// The primary unit name as string
String,
// The human readable description string
String,
// The load state (i.e. whether the unit file has been loaded successfully)
String,
// The active state (i.e. whether the unit is currently started or not)
String,
// The sub state (a more fine-grained version of the active state that is specific to the unit type, which the active state is not)
String,
// A unit that is being followed in its state by this unit, if there is any, otherwise the empty string.
String,
// The unit object path
zbus::zvariant::OwnedObjectPath,
// If there is a job queued for the job unit, the numeric job id, 0 otherwise
u32,
// The job type as string
String,
// The job object path
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// ListUnitsByNames method
fn list_units_by_names(
&self,
names: &[&str],
) -> zbus::Result<
Vec<(
String,
String,
String,
String,
String,
String,
zbus::zvariant::OwnedObjectPath,
u32,
String,
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// ListUnitsByPatterns method
fn list_units_by_patterns(
&self,
states: &[&str],
patterns: &[&str],
) -> zbus::Result<
Vec<(
String,
String,
String,
String,
String,
String,
zbus::zvariant::OwnedObjectPath,
u32,
String,
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// ListUnitsFiltered method
fn list_units_filtered(
&self,
states: &[&str],
) -> zbus::Result<
Vec<(
String,
String,
String,
String,
String,
String,
zbus::zvariant::OwnedObjectPath,
u32,
String,
zbus::zvariant::OwnedObjectPath,
)>,
>;
/// # LoadUnit()
/// ## METHOD
/// Similar to GetUnit() but will load the unit from disk if possible.
fn load_unit(&self, name: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// LookupDynamicUserByName method
fn lookup_dynamic_user_by_name(&self, name: &str) -> zbus::Result<u32>;
/// LookupDynamicUserByUID method
#[zbus(name = "LookupDynamicUserByUID")]
fn lookup_dynamic_user_by_uid(&self, uid: u32) -> zbus::Result<String>;
/// MaskUnitFiles method
fn mask_unit_files(
&self,
files: &[&str],
runtime: bool,
force: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// # MountImageUnit()
/// ## METHOD
/// Can be used to mount new images into a running service mount namespace.
fn mount_image_unit(
&self,
name: &str,
source: &str,
destination: &str,
read_only: bool,
mkdir: bool,
options: &[&(&str, &str)],
) -> zbus::Result<()>;
/// PowerOff method
fn power_off(&self) -> zbus::Result<()>;
/// PresetAllUnitFiles method
fn preset_all_unit_files(
&self,
mode: &str,
runtime: bool,
force: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// PresetUnitFiles method
fn preset_unit_files(
&self,
files: &[&str],
runtime: bool,
force: bool,
) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
/// PresetUnitFilesWithMode method
fn preset_unit_files_with_mode(
&self,
files: &[&str],
mode: &str,
runtime: bool,
force: bool,
) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
/// # Reboot()
/// ## METHOD
/// Reboot(), PowerOff(), Halt(), or KExec() may be used to ask for immediate reboot, powering down, halt or kexec based reboot of the system. Note that this does not shut down any services and immediately transitions into the
/// reboot process. These functions are normally only called as the last step of shutdown and should not be called directly. To shut down the machine, it is generally a better idea to invoke Reboot() or PowerOff() on the
/// systemd-logind manager object; see org.freedesktop.login1(5) for more information.
fn reboot(&self) -> zbus::Result<()>;
/// ReenableUnitFiles method
fn reenable_unit_files(
&self,
files: &[&str],
runtime: bool,
force: bool,
) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
/// # Reexecute()
/// ## METHOD
/// May be invoked to reexecute the main manager process. It will serialize its state, reexecute, and deserizalize the state again. This is useful for upgrades and is a more comprehensive version of Reload().
fn reexecute(&self) -> zbus::Result<()>;
/// RefUnit method
fn ref_unit(&self, name: &str) -> zbus::Result<()>;
/// # Reload()
/// ## METHOD
/// May be invoked to reload all unit files.
fn reload(&self) -> zbus::Result<()>;
/// ReloadOrRestartUnit method
fn reload_or_restart_unit(
&self,
name: &str,
mode: &str,
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// ReloadOrTryRestartUnit method
fn reload_or_try_restart_unit(
&self,
name: &str,
mode: &str,
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # ReloadUnit()
/// ## METHOD
/// ReloadUnit(), RestartUnit(), TryRestartUnit(), ReloadOrRestartUnit(), or ReloadOrTryRestartUnit() may be used to restart and/or reload a unit. These methods take similar arguments as StartUnit(). Reloading is done only if the
/// unit is already running and fails otherwise. If a service is restarted that isn't running, it will be started unless the "Try" flavor is used in which case a service that isn't running is not affected by the restart. The
/// "ReloadOrRestart" flavors attempt a reload if the unit supports it and use a restart otherwise.
fn reload_unit(&self, name: &str, mode: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # ResetFailed()
/// ## METHOD
/// Resets the "failed" state of all units.
fn reset_failed(&self) -> zbus::Result<()>;
/// # ResetFailedUnit()
/// ## METHOD
/// Resets the "failed" state of a specific unit.
fn reset_failed_unit(&self, name: &str) -> zbus::Result<()>;
/// RestartUnit method
fn restart_unit(&self, name: &str, mode: &str)
-> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// RevertUnitFiles method
fn revert_unit_files(&self, files: &[&str]) -> zbus::Result<Vec<(String, String, String)>>;
/// # SetDefaultTarget()
/// ## METHOD
/// Changes the default.target link. See bootup(7) for more information.
fn set_default_target(
&self,
name: &str,
force: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// # SetEnvironment()
/// ## METHOD
/// May be used to alter the environment block that is passed to all spawned processes. It takes a string array of environment variable assignments. Any previously set environment variables will be overridden.
fn set_environment(&self, assignments: &[&str]) -> zbus::Result<()>;
/// SetExitCode method
fn set_exit_code(&self, number: u8) -> zbus::Result<()>;
/// SetShowStatus method
fn set_show_status(&self, mode: &str) -> zbus::Result<()>;
/// # SetUnitProperties()
/// ## METHOD
/// May be used to modify certain unit properties at runtime. Not all properties may be changed at runtime, but many resource management settings (primarily those listed in
/// systemd.resource-control(5)) may. The changes are applied instantly and stored on disk for future boots, unless runtime is true, in which case the settings only apply until the next reboot. name is
/// the name of the unit to modify. properties are the settings to set, encoded as an array of property name and value pairs. Note that this is not a dictionary! Also note that when setting array
/// properties with this method usually results in appending to the pre-configured array. To reset the configured arrays, set the property to an empty array first and then append to it.
///
/// StartTransientUnit() may be used to create and start a transient unit which will be released as soon as it is not running or referenced anymore or the system is rebooted. name is the unit name
/// including its suffix and must be unique. mode is the same as in StartUnit(), properties contains properties of the unit, specified like in SetUnitProperties(). aux is currently unused and should be
/// passed as an empty array. See the New Control Group Interface[2] for more information how to make use of this functionality for resource control purposes.
fn set_unit_properties(
&self,
name: &str,
runtime: bool,
properties: &[&(&str, &zbus::zvariant::Value<'_>)],
) -> zbus::Result<()>;
/// # StartTransientUnit()
/// ## METHOD
/// May be used to create and start a transient unit which will be released as soon as it is not running or referenced anymore or the system is rebooted. name is the unit name
/// including its suffix and must be unique. mode is the same as in StartUnit(), properties contains properties of the unit, specified like in SetUnitProperties(). aux is currently unused and should be
/// passed as an empty array. See the New Control Group Interface[2] for more information how to make use of this functionality for resource control purposes.
#[allow(clippy::type_complexity)]
fn start_transient_unit(
&self,
name: &str,
mode: &str,
properties: &[&(&str, &zbus::zvariant::Value<'_>)],
aux: &[&(&str, &[&(&str, &zbus::zvariant::Value<'_>)])],
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # StartUnit()
/// ## METHOD
/// Enqueues a start job and possibly depending jobs. It takes the unit to activate and a mode
/// string as arguments. The mode needs to be one of "replace", "fail", "isolate", "ignore-dependencies", or
/// "ignore-requirements". If "replace", the method will start the unit and its dependencies, possibly
/// replacing already queued jobs that conflict with it. If "fail", the method will start the unit and its
/// dependencies, but will fail if this would change an already queued job. If "isolate", the method will
/// start the unit in question and terminate all units that aren't dependencies of it. If
/// "ignore-dependencies", it will start a unit but ignore all its dependencies. If "ignore-requirements",
/// it will start a unit but only ignore the requirement dependencies. It is not recommended to make use of
/// the latter two options. On completion, this method returns the newly created job object.
fn start_unit(&self, name: &str, mode: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # StartUnitReplace()
/// ## METHOD
/// Similar to StartUnit() but replaces a job that is queued for one unit by a job for
/// another unit.
fn start_unit_replace(
&self,
old_unit: &str,
new_unit: &str,
mode: &str,
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # StopUnit()
/// ## METHOD
/// Similar to StartUnit() but stops the specified unit rather than starting it. Note that the
/// "isolate" mode is invalid for this method.
fn stop_unit(&self, name: &str, mode: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// # Subscribe()
/// ## METHOD
/// Enables most bus signals to be sent out. Clients which are interested in signals need to call this method. Signals are only sent out if at least one client invoked this method. Unsubscribe() reverts the signal
/// subscription that Subscribe() implements. It is not necessary to invoke Unsubscribe() as clients are tracked. Signals are no longer sent out as soon as all clients which previously asked for Subscribe() either closed their
/// connection to the bus or invoked Unsubscribe().
fn subscribe(&self) -> zbus::Result<()>;
/// # SwitchRoot()
/// ## METHOD
/// May be used to transition to a new root directory. This is intended to be used by initial RAM disks. The method takes two arguments: the new root directory (which needs to be specified) and an init binary path
/// (which may be left empty, in which case it is automatically searched for). The state of the system manager will be serialized before the transition. After the transition, the manager binary on the main system is invoked and
/// replaces the old PID 1. All state will then be deserialized.
fn switch_root(&self, new_root: &str, init: &str) -> zbus::Result<()>;
/// ThawUnit method
fn thaw_unit(&self, name: &str) -> zbus::Result<()>;
/// TryRestartUnit method
fn try_restart_unit(
&self,
name: &str,
mode: &str,
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// UnmaskUnitFiles method
fn unmask_unit_files(
&self,
files: &[&str],
runtime: bool,
) -> zbus::Result<Vec<(String, String, String)>>;
/// UnrefUnit method
fn unref_unit(&self, name: &str) -> zbus::Result<()>;
/// # UnsetAndSetEnvironment()
/// ## METHOD
/// Is a combination of UnsetEnvironment() and SetEnvironment(). It takes two lists. The first list contains variables to unset, the second one contains assignments to set. If a variable is listed in both,
/// the variable is set after this method returns, i.e. the set list overrides the unset list.
fn unset_and_set_environment(&self, names: &[&str], assignments: &[&str]) -> zbus::Result<()>;
/// # UnsetEnvironment()
/// ## METHOD
/// May be used to unset environment variables. It takes a string array of environment variable names. All variables specified will be unset (if they have been set previously) and no longer be passed to all
/// spawned processes. This method has no effect for variables that were previously not set, but will not fail in that case.
fn unset_environment(&self, names: &[&str]) -> zbus::Result<()>;
/// Unsubscribe method
fn unsubscribe(&self) -> zbus::Result<()>;
/// # JobNew
/// ## SIGNAL
/// JobNew() and JobRemoved() are sent out each time a new job is queued or dequeued. Both signals take the numeric job ID, the bus path and the primary unit name for this job as arguments. JobRemoved()
/// also includes a result string which is one of "done", "canceled", "timeout", "failed", "dependency", or "skipped". "done" indicates successful execution of a job. "canceled" indicates that a job has
/// been canceled (via CancelJob() above) before it finished execution (this doesn't necessarily mean though that the job operation is actually cancelled too, see above). "timeout" indicates that the job
/// timeout was reached. "failed" indicates that the job failed. "dependency" indicates that a job this job depended on failed and the job hence was removed as well. "skipped" indicates that a job was
/// skipped because it didn't apply to the unit's current state.
#[zbus(signal)]
fn job_new(&self, id: u32, job: zbus::zvariant::ObjectPath<'_>, unit: &str)
-> zbus::Result<()>;
/// # JobRemoved
/// ## SIGNAL
/// JobNew() and JobRemoved() are sent out each time a new job is queued or dequeued. Both signals take the numeric job ID, the bus path and the primary unit name for this job as arguments. JobRemoved()
/// also includes a result string which is one of "done", "canceled", "timeout", "failed", "dependency", or "skipped". "done" indicates successful execution of a job. "canceled" indicates that a job has
/// been canceled (via CancelJob() above) before it finished execution (this doesn't necessarily mean though that the job operation is actually cancelled too, see above). "timeout" indicates that the job
/// timeout was reached. "failed" indicates that the job failed. "dependency" indicates that a job this job depended on failed and the job hence was removed as well. "skipped" indicates that a job was
/// skipped because it didn't apply to the unit's current state.
#[zbus(signal)]
fn job_removed(
&self,
id: u32,
job: zbus::zvariant::ObjectPath<'_>,
unit: &str,
result: &str,
) -> zbus::Result<()>;
/// # Reloading
/// ## SIGNAL
/// Sent out immediately before a daemon reload is done (with the boolean parameter set to True) and after a daemon reload is completed (with the boolean parameter set to False). This may
/// be used by UIs to optimize UI updates.
#[zbus(signal)]
fn reloading(&self, active: bool) -> zbus::Result<()>;
/// # StartupFinished
/// ## SIGNAL
/// Sent out when startup finishes. It carries six microsecond timespan values, each indicating how much boot time has been spent in the firmware (if known), in the boot loader (if
/// known), in the kernel initialization phase, in the initrd (if known), in userspace and in total. These values may also be calculated from the FirmwareTimestampMonotonic, LoaderTimestampMonotonic,
/// InitRDTimestampMonotonic, UserspaceTimestampMonotonic, and FinishTimestampMonotonic properties (see below).
#[zbus(signal)]
fn startup_finished(
&self,
firmware: u64,
loader: u64,
kernel: u64,
initrd: u64,
userspace: u64,
total: u64,
) -> zbus::Result<()>;
/// # UnitFilesChanged
/// ## SIGNAL
/// Sent out each time the list of enabled or masked unit files on disk have changed.
#[zbus(signal)]
fn unit_files_changed(&self) -> zbus::Result<()>;
/// # UnitNew
/// ## SIGNAL
/// UnitNew() and UnitRemoved() are sent out each time a new unit is loaded or unloaded. Note that this has little to do with whether a unit is available on disk or not, and simply reflects the units that
/// are currently loaded into memory. The signals take two parameters: the primary unit name and the object path.
#[zbus(signal)]
fn unit_new(&self, id: &str, unit: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
/// # UnitRemoved
/// ## SIGNAL
/// UnitNew() and UnitRemoved() are sent out each time a new unit is loaded or unloaded. Note that this has little to do with whether a unit is available on disk or not, and simply reflects the units that
/// are currently loaded into memory. The signals take two parameters: the primary unit name and the object path.
#[zbus(signal)]
fn unit_removed(&self, id: &str, unit: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
/// Architecture property
#[zbus(property)]
fn architecture(&self) -> zbus::Result<String>;
/// ConfirmSpawn property
#[zbus(property)]
fn confirm_spawn(&self) -> zbus::Result<bool>;
/// ControlGroup property
#[zbus(property)]
fn control_group(&self) -> zbus::Result<String>;
/// CtrlAltDelBurstAction property
#[zbus(property)]
fn ctrl_alt_del_burst_action(&self) -> zbus::Result<String>;
/// DefaultBlockIOAccounting property
#[zbus(property, name = "DefaultBlockIOAccounting")]
fn default_block_ioaccounting(&self) -> zbus::Result<bool>;
/// DefaultCPUAccounting property
#[zbus(property, name = "DefaultCPUAccounting")]
fn default_cpuaccounting(&self) -> zbus::Result<bool>;
/// DefaultLimitAS property
#[zbus(property, name = "DefaultLimitAS")]
fn default_limit_as(&self) -> zbus::Result<u64>;
/// DefaultLimitASSoft property
#[zbus(property, name = "DefaultLimitASSoft")]
fn default_limit_assoft(&self) -> zbus::Result<u64>;
/// DefaultLimitCORE property
#[zbus(property, name = "DefaultLimitCORE")]
fn default_limit_core(&self) -> zbus::Result<u64>;
/// DefaultLimitCORESoft property
#[zbus(property, name = "DefaultLimitCORESoft")]
fn default_limit_coresoft(&self) -> zbus::Result<u64>;
/// DefaultLimitCPU property
#[zbus(property, name = "DefaultLimitCPU")]
fn default_limit_cpu(&self) -> zbus::Result<u64>;
/// DefaultLimitCPUSoft property
#[zbus(property, name = "DefaultLimitCPUSoft")]
fn default_limit_cpusoft(&self) -> zbus::Result<u64>;
/// DefaultLimitDATA property
#[zbus(property, name = "DefaultLimitDATA")]
fn default_limit_data(&self) -> zbus::Result<u64>;
/// DefaultLimitDATASoft property
#[zbus(property, name = "DefaultLimitDATASoft")]
fn default_limit_datasoft(&self) -> zbus::Result<u64>;
/// DefaultLimitFSIZE property
#[zbus(property, name = "DefaultLimitFSIZE")]
fn default_limit_fsize(&self) -> zbus::Result<u64>;
/// DefaultLimitFSIZESoft property
#[zbus(property, name = "DefaultLimitFSIZESoft")]
fn default_limit_fsizesoft(&self) -> zbus::Result<u64>;
/// DefaultLimitLOCKS property
#[zbus(property, name = "DefaultLimitLOCKS")]
fn default_limit_locks(&self) -> zbus::Result<u64>;
/// DefaultLimitLOCKSSoft property
#[zbus(property, name = "DefaultLimitLOCKSSoft")]
fn default_limit_lockssoft(&self) -> zbus::Result<u64>;
/// DefaultLimitMEMLOCK property
#[zbus(property, name = "DefaultLimitMEMLOCK")]
fn default_limit_memlock(&self) -> zbus::Result<u64>;
/// DefaultLimitMEMLOCKSoft property
#[zbus(property, name = "DefaultLimitMEMLOCKSoft")]
fn default_limit_memlocksoft(&self) -> zbus::Result<u64>;
/// DefaultLimitMSGQUEUE property
#[zbus(property, name = "DefaultLimitMSGQUEUE")]
fn default_limit_msgqueue(&self) -> zbus::Result<u64>;
/// DefaultLimitMSGQUEUESoft property
#[zbus(property, name = "DefaultLimitMSGQUEUESoft")]
fn default_limit_msgqueuesoft(&self) -> zbus::Result<u64>;
/// DefaultLimitNICE property
#[zbus(property, name = "DefaultLimitNICE")]
fn default_limit_nice(&self) -> zbus::Result<u64>;
/// DefaultLimitNICESoft property
#[zbus(property, name = "DefaultLimitNICESoft")]
fn default_limit_nicesoft(&self) -> zbus::Result<u64>;
/// DefaultLimitNOFILE property
#[zbus(property, name = "DefaultLimitNOFILE")]
fn default_limit_nofile(&self) -> zbus::Result<u64>;
/// DefaultLimitNOFILESoft property
#[zbus(property, name = "DefaultLimitNOFILESoft")]
fn default_limit_nofilesoft(&self) -> zbus::Result<u64>;
/// DefaultLimitNPROC property
#[zbus(property, name = "DefaultLimitNPROC")]
fn default_limit_nproc(&self) -> zbus::Result<u64>;
/// DefaultLimitNPROCSoft property
#[zbus(property, name = "DefaultLimitNPROCSoft")]
fn default_limit_nprocsoft(&self) -> zbus::Result<u64>;
/// DefaultLimitRSS property
#[zbus(property, name = "DefaultLimitRSS")]
fn default_limit_rss(&self) -> zbus::Result<u64>;
/// DefaultLimitRSSSoft property
#[zbus(property, name = "DefaultLimitRSSSoft")]
fn default_limit_rsssoft(&self) -> zbus::Result<u64>;
/// DefaultLimitRTPRIO property
#[zbus(property, name = "DefaultLimitRTPRIO")]
fn default_limit_rtprio(&self) -> zbus::Result<u64>;
/// DefaultLimitRTPRIOSoft property
#[zbus(property, name = "DefaultLimitRTPRIOSoft")]
fn default_limit_rtpriosoft(&self) -> zbus::Result<u64>;
/// DefaultLimitRTTIME property
#[zbus(property, name = "DefaultLimitRTTIME")]
fn default_limit_rttime(&self) -> zbus::Result<u64>;
/// DefaultLimitRTTIMESoft property
#[zbus(property, name = "DefaultLimitRTTIMESoft")]
fn default_limit_rttimesoft(&self) -> zbus::Result<u64>;
/// DefaultLimitSIGPENDING property
#[zbus(property, name = "DefaultLimitSIGPENDING")]
fn default_limit_sigpending(&self) -> zbus::Result<u64>;
/// DefaultLimitSIGPENDINGSoft property
#[zbus(property, name = "DefaultLimitSIGPENDINGSoft")]
fn default_limit_sigpendingsoft(&self) -> zbus::Result<u64>;
/// DefaultLimitSTACK property
#[zbus(property, name = "DefaultLimitSTACK")]
fn default_limit_stack(&self) -> zbus::Result<u64>;
/// DefaultLimitSTACKSoft property
#[zbus(property, name = "DefaultLimitSTACKSoft")]
fn default_limit_stacksoft(&self) -> zbus::Result<u64>;
/// DefaultMemoryAccounting property
#[zbus(property)]
fn default_memory_accounting(&self) -> zbus::Result<bool>;
/// DefaultOOMPolicy property
#[zbus(property, name = "DefaultOOMPolicy")]
fn default_oompolicy(&self) -> zbus::Result<String>;
/// DefaultRestartUSec property
#[zbus(property, name = "DefaultRestartUSec")]
fn default_restart_usec(&self) -> zbus::Result<u64>;
/// DefaultStandardError property
#[zbus(property)]
fn default_standard_error(&self) -> zbus::Result<String>;
/// DefaultStandardOutput property
#[zbus(property)]
fn default_standard_output(&self) -> zbus::Result<String>;
/// DefaultStartLimitBurst property
#[zbus(property)]
fn default_start_limit_burst(&self) -> zbus::Result<u32>;
/// DefaultStartLimitIntervalUSec property
#[zbus(property, name = "DefaultStartLimitIntervalUSec")]
fn default_start_limit_interval_usec(&self) -> zbus::Result<u64>;
/// DefaultTasksAccounting property
#[zbus(property)]
fn default_tasks_accounting(&self) -> zbus::Result<bool>;
/// DefaultTasksMax property
#[zbus(property)]
fn default_tasks_max(&self) -> zbus::Result<u64>;
/// DefaultTimeoutAbortUSec property
#[zbus(property, name = "DefaultTimeoutAbortUSec")]
fn default_timeout_abort_usec(&self) -> zbus::Result<u64>;
/// DefaultTimeoutStartUSec property
#[zbus(property, name = "DefaultTimeoutStartUSec")]
fn default_timeout_start_usec(&self) -> zbus::Result<u64>;
/// DefaultTimeoutStopUSec property
#[zbus(property, name = "DefaultTimeoutStopUSec")]
fn default_timeout_stop_usec(&self) -> zbus::Result<u64>;
/// DefaultTimerAccuracyUSec property
#[zbus(property, name = "DefaultTimerAccuracyUSec")]
fn default_timer_accuracy_usec(&self) -> zbus::Result<u64>;
/// Environment property
#[zbus(property)]
fn environment(&self) -> zbus::Result<Vec<String>>;
/// ExitCode property
#[zbus(property)]
fn exit_code(&self) -> zbus::Result<u8>;
/// Features property
#[zbus(property)]
fn features(&self) -> zbus::Result<String>;
/// FinishTimestamp property
#[zbus(property)]
fn finish_timestamp(&self) -> zbus::Result<u64>;
/// FinishTimestampMonotonic property
#[zbus(property)]
fn finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// FirmwareTimestamp property
#[zbus(property)]
fn firmware_timestamp(&self) -> zbus::Result<u64>;
/// FirmwareTimestampMonotonic property
#[zbus(property)]
fn firmware_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// GeneratorsFinishTimestamp property
#[zbus(property)]
fn generators_finish_timestamp(&self) -> zbus::Result<u64>;
/// GeneratorsFinishTimestampMonotonic property
#[zbus(property)]
fn generators_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// GeneratorsStartTimestamp property
#[zbus(property)]
fn generators_start_timestamp(&self) -> zbus::Result<u64>;
/// GeneratorsStartTimestampMonotonic property
#[zbus(property)]
fn generators_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDGeneratorsFinishTimestamp property
#[zbus(property, name = "InitRDGeneratorsFinishTimestamp")]
fn init_rdgenerators_finish_timestamp(&self) -> zbus::Result<u64>;
/// InitRDGeneratorsFinishTimestampMonotonic property
#[zbus(property, name = "InitRDGeneratorsFinishTimestampMonotonic")]
fn init_rdgenerators_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDGeneratorsStartTimestamp property
#[zbus(property, name = "InitRDGeneratorsStartTimestamp")]
fn init_rdgenerators_start_timestamp(&self) -> zbus::Result<u64>;
/// InitRDGeneratorsStartTimestampMonotonic property
#[zbus(property, name = "InitRDGeneratorsStartTimestampMonotonic")]
fn init_rdgenerators_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDSecurityFinishTimestamp property
#[zbus(property, name = "InitRDSecurityFinishTimestamp")]
fn init_rdsecurity_finish_timestamp(&self) -> zbus::Result<u64>;
/// InitRDSecurityFinishTimestampMonotonic property
#[zbus(property, name = "InitRDSecurityFinishTimestampMonotonic")]
fn init_rdsecurity_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDSecurityStartTimestamp property
#[zbus(property, name = "InitRDSecurityStartTimestamp")]
fn init_rdsecurity_start_timestamp(&self) -> zbus::Result<u64>;
/// InitRDSecurityStartTimestampMonotonic property
#[zbus(property, name = "InitRDSecurityStartTimestampMonotonic")]
fn init_rdsecurity_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDTimestamp property
#[zbus(property, name = "InitRDTimestamp")]
fn init_rdtimestamp(&self) -> zbus::Result<u64>;
/// InitRDTimestampMonotonic property
#[zbus(property, name = "InitRDTimestampMonotonic")]
fn init_rdtimestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDUnitsLoadFinishTimestamp property
#[zbus(property, name = "InitRDUnitsLoadFinishTimestamp")]
fn init_rdunits_load_finish_timestamp(&self) -> zbus::Result<u64>;
/// InitRDUnitsLoadFinishTimestampMonotonic property
#[zbus(property, name = "InitRDUnitsLoadFinishTimestampMonotonic")]
fn init_rdunits_load_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// InitRDUnitsLoadStartTimestamp property
#[zbus(property, name = "InitRDUnitsLoadStartTimestamp")]
fn init_rdunits_load_start_timestamp(&self) -> zbus::Result<u64>;
/// InitRDUnitsLoadStartTimestampMonotonic property
#[zbus(property, name = "InitRDUnitsLoadStartTimestampMonotonic")]
fn init_rdunits_load_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// KExecWatchdogUSec property
#[zbus(property, name = "KExecWatchdogUSec")]
fn kexec_watchdog_usec(&self) -> zbus::Result<u64>;
#[zbus(property, name = "KExecWatchdogUSec")]
fn set_kexec_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
/// KernelTimestamp property
#[zbus(property)]
fn kernel_timestamp(&self) -> zbus::Result<u64>;
/// KernelTimestampMonotonic property
#[zbus(property)]
fn kernel_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// LoaderTimestamp property
#[zbus(property)]
fn loader_timestamp(&self) -> zbus::Result<u64>;
/// LoaderTimestampMonotonic property
#[zbus(property)]
fn loader_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// LogLevel property
#[zbus(property)]
fn log_level(&self) -> zbus::Result<String>;
#[zbus(property)]
fn set_log_level(&self, value: &str) -> zbus::Result<()>;
/// LogTarget property
#[zbus(property)]
fn log_target(&self) -> zbus::Result<String>;
#[zbus(property)]
fn set_log_target(&self, value: &str) -> zbus::Result<()>;
/// NFailedJobs property
#[zbus(property, name = "NFailedJobs")]
fn nfailed_jobs(&self) -> zbus::Result<u32>;
/// NFailedUnits property
#[zbus(property, name = "NFailedUnits")]
fn nfailed_units(&self) -> zbus::Result<u32>;
/// NInstalledJobs property
#[zbus(property, name = "NInstalledJobs")]
fn ninstalled_jobs(&self) -> zbus::Result<u32>;
/// NJobs property
#[zbus(property, name = "NJobs")]
fn njobs(&self) -> zbus::Result<u32>;
/// NNames property
#[zbus(property, name = "NNames")]
fn nnames(&self) -> zbus::Result<u32>;
/// Progress property
#[zbus(property)]
fn progress(&self) -> zbus::Result<f64>;
/// RebootWatchdogUSec property
#[zbus(property, name = "RebootWatchdogUSec")]
fn reboot_watchdog_usec(&self) -> zbus::Result<u64>;
#[zbus(property, name = "RebootWatchdogUSec")]
fn set_reboot_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
/// RuntimeWatchdogUSec property
#[zbus(property, name = "RuntimeWatchdogUSec")]
fn runtime_watchdog_usec(&self) -> zbus::Result<u64>;
#[zbus(property, name = "RuntimeWatchdogUSec")]
fn set_runtime_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
/// SecurityFinishTimestamp property
#[zbus(property)]
fn security_finish_timestamp(&self) -> zbus::Result<u64>;
/// SecurityFinishTimestampMonotonic property
#[zbus(property)]
fn security_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// SecurityStartTimestamp property
#[zbus(property)]
fn security_start_timestamp(&self) -> zbus::Result<u64>;
/// SecurityStartTimestampMonotonic property
#[zbus(property)]
fn security_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// ServiceWatchdogs property
#[zbus(property)]
fn service_watchdogs(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn set_service_watchdogs(&self, value: bool) -> zbus::Result<()>;
/// ShowStatus property
#[zbus(property)]
fn show_status(&self) -> zbus::Result<bool>;
/// SystemState property
#[zbus(property)]
fn system_state(&self) -> zbus::Result<String>;
/// Tainted property
#[zbus(property)]
fn tainted(&self) -> zbus::Result<String>;
/// TimerSlackNSec property
#[zbus(property, name = "TimerSlackNSec")]
fn timer_slack_nsec(&self) -> zbus::Result<u64>;
/// UnitPath property
#[zbus(property)]
fn unit_path(&self) -> zbus::Result<Vec<String>>;
/// UnitsLoadFinishTimestamp property
#[zbus(property)]
fn units_load_finish_timestamp(&self) -> zbus::Result<u64>;
/// UnitsLoadFinishTimestampMonotonic property
#[zbus(property)]
fn units_load_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// UnitsLoadStartTimestamp property
#[zbus(property)]
fn units_load_start_timestamp(&self) -> zbus::Result<u64>;
/// UnitsLoadStartTimestampMonotonic property
#[zbus(property)]
fn units_load_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// UserspaceTimestamp property
#[zbus(property)]
fn userspace_timestamp(&self) -> zbus::Result<u64>;
/// UserspaceTimestampMonotonic property
#[zbus(property)]
fn userspace_timestamp_monotonic(&self) -> zbus::Result<u64>;
/// Version property
#[zbus(property)]
fn version(&self) -> zbus::Result<String>;
/// Virtualization property
#[zbus(property)]
fn virtualization(&self) -> zbus::Result<String>;
}