sd_switch/systemd/
dbus_manager.rs

1//! # D-Bus interface proxy for: `org.freedesktop.systemd1.Manager`
2//!
3//! This code was generated by `zbus-xmlgen` `5.0.1` from D-Bus introspection data.
4//! Source: `Interface '/org/freedesktop/systemd1' from service 'org.freedesktop.systemd1' on system bus`.
5//!
6//! You may prefer to adapt it, instead of using it verbatim.
7//!
8//! More information can be found in the [Writing a client proxy] section of the zbus
9//! documentation.
10//!
11//! This type implements the [D-Bus standard interfaces], (`org.freedesktop.DBus.*`) for which the
12//! following zbus API can be used:
13//!
14//! * [`zbus::fdo::PeerProxy`]
15//! * [`zbus::fdo::IntrospectableProxy`]
16//! * [`zbus::fdo::PropertiesProxy`]
17//!
18//! Consequently `zbus-xmlgen` did not generate code for the above interfaces.
19//!
20//! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html
21//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
22use zbus::proxy;
23#[proxy(
24    interface = "org.freedesktop.systemd1.Manager",
25    default_service = "org.freedesktop.systemd1",
26    default_path = "/org/freedesktop/systemd1",
27    gen_async = false
28)]
29pub trait Manager {
30    /// AbandonScope method
31    fn abandon_scope(&self, name: &str) -> zbus::Result<()>;
32
33    /// AddDependencyUnitFiles method
34    fn add_dependency_unit_files(
35        &self,
36        files: &[&str],
37        target: &str,
38        type_: &str,
39        runtime: bool,
40        force: bool,
41    ) -> zbus::Result<Vec<(String, String, String)>>;
42
43    /// AttachProcessesToUnit method
44    fn attach_processes_to_unit(
45        &self,
46        unit_name: &str,
47        subcgroup: &str,
48        pids: &[u32],
49    ) -> zbus::Result<()>;
50
51    /// BindMountUnit method
52    fn bind_mount_unit(
53        &self,
54        name: &str,
55        source: &str,
56        destination: &str,
57        read_only: bool,
58        mkdir: bool,
59    ) -> zbus::Result<()>;
60
61    /// CancelJob method
62    fn cancel_job(&self, id: u32) -> zbus::Result<()>;
63
64    /// CleanUnit method
65    fn clean_unit(&self, name: &str, mask: &[&str]) -> zbus::Result<()>;
66
67    /// ClearJobs method
68    fn clear_jobs(&self) -> zbus::Result<()>;
69
70    /// DisableUnitFiles method
71    fn disable_unit_files(
72        &self,
73        files: &[&str],
74        runtime: bool,
75    ) -> zbus::Result<Vec<(String, String, String)>>;
76
77    /// DisableUnitFilesWithFlags method
78    fn disable_unit_files_with_flags(
79        &self,
80        files: &[&str],
81        flags: u64,
82    ) -> zbus::Result<Vec<(String, String, String)>>;
83
84    /// DisableUnitFilesWithFlagsAndInstallInfo method
85    fn disable_unit_files_with_flags_and_install_info(
86        &self,
87        files: &[&str],
88        flags: u64,
89    ) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
90
91    /// Dump method
92    fn dump(&self) -> zbus::Result<String>;
93
94    /// DumpByFileDescriptor method
95    fn dump_by_file_descriptor(&self) -> zbus::Result<zbus::zvariant::OwnedFd>;
96
97    /// DumpUnitFileDescriptorStore method
98    fn dump_unit_file_descriptor_store(
99        &self,
100        name: &str,
101    ) -> zbus::Result<Vec<(String, u32, u32, u32, u64, u32, u32, String, u32)>>;
102
103    /// DumpUnitsMatchingPatterns method
104    fn dump_units_matching_patterns(&self, patterns: &[&str]) -> zbus::Result<String>;
105
106    /// DumpUnitsMatchingPatternsByFileDescriptor method
107    fn dump_units_matching_patterns_by_file_descriptor(
108        &self,
109        patterns: &[&str],
110    ) -> zbus::Result<zbus::zvariant::OwnedFd>;
111
112    /// EnableUnitFiles method
113    fn enable_unit_files(
114        &self,
115        files: &[&str],
116        runtime: bool,
117        force: bool,
118    ) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
119
120    /// EnableUnitFilesWithFlags method
121    fn enable_unit_files_with_flags(
122        &self,
123        files: &[&str],
124        flags: u64,
125    ) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
126
127    /// EnqueueMarkedJobs method
128    fn enqueue_marked_jobs(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
129
130    /// EnqueueUnitJob method
131    #[allow(clippy::too_many_arguments)]
132    fn enqueue_unit_job(
133        &self,
134        name: &str,
135        job_type: &str,
136        job_mode: &str,
137    ) -> zbus::Result<(
138        u32,
139        zbus::zvariant::OwnedObjectPath,
140        String,
141        zbus::zvariant::OwnedObjectPath,
142        String,
143        Vec<(
144            u32,
145            zbus::zvariant::OwnedObjectPath,
146            String,
147            zbus::zvariant::OwnedObjectPath,
148            String,
149        )>,
150    )>;
151
152    /// Exit method
153    fn exit(&self) -> zbus::Result<()>;
154
155    /// FreezeUnit method
156    fn freeze_unit(&self, name: &str) -> zbus::Result<()>;
157
158    /// GetDefaultTarget method
159    fn get_default_target(&self) -> zbus::Result<String>;
160
161    /// GetDynamicUsers method
162    fn get_dynamic_users(&self) -> zbus::Result<Vec<(u32, String)>>;
163
164    /// GetJob method
165    fn get_job(&self, id: u32) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
166
167    /// GetJobAfter method
168    fn get_job_after(
169        &self,
170        id: u32,
171    ) -> zbus::Result<
172        Vec<(
173            u32,
174            String,
175            String,
176            String,
177            zbus::zvariant::OwnedObjectPath,
178            zbus::zvariant::OwnedObjectPath,
179        )>,
180    >;
181
182    /// GetJobBefore method
183    fn get_job_before(
184        &self,
185        id: u32,
186    ) -> zbus::Result<
187        Vec<(
188            u32,
189            String,
190            String,
191            String,
192            zbus::zvariant::OwnedObjectPath,
193            zbus::zvariant::OwnedObjectPath,
194        )>,
195    >;
196
197    /// GetUnit method
198    fn get_unit(&self, name: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
199
200    /// GetUnitByControlGroup method
201    fn get_unit_by_control_group(
202        &self,
203        cgroup: &str,
204    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
205
206    /// GetUnitByInvocationID method
207    #[zbus(name = "GetUnitByInvocationID")]
208    fn get_unit_by_invocation_id(
209        &self,
210        invocation_id: &[u8],
211    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
212
213    /// GetUnitByPID method
214    #[zbus(name = "GetUnitByPID")]
215    fn get_unit_by_pid(&self, pid: u32) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
216
217    /// GetUnitByPIDFD method
218    #[zbus(name = "GetUnitByPIDFD")]
219    fn get_unit_by_pidfd(
220        &self,
221        pidfd: zbus::zvariant::Fd<'_>,
222    ) -> zbus::Result<(zbus::zvariant::OwnedObjectPath, String, Vec<u8>)>;
223
224    /// GetUnitFileLinks method
225    fn get_unit_file_links(&self, name: &str, runtime: bool) -> zbus::Result<Vec<String>>;
226
227    /// GetUnitFileState method
228    fn get_unit_file_state(&self, file: &str) -> zbus::Result<String>;
229
230    /// GetUnitProcesses method
231    fn get_unit_processes(&self, name: &str) -> zbus::Result<Vec<(String, u32, String)>>;
232
233    /// Halt method
234    fn halt(&self) -> zbus::Result<()>;
235
236    /// KExec method
237    #[zbus(name = "KExec")]
238    fn kexec(&self) -> zbus::Result<()>;
239
240    /// KillUnit method
241    fn kill_unit(&self, name: &str, whom: &str, signal: i32) -> zbus::Result<()>;
242
243    /// LinkUnitFiles method
244    fn link_unit_files(
245        &self,
246        files: &[&str],
247        runtime: bool,
248        force: bool,
249    ) -> zbus::Result<Vec<(String, String, String)>>;
250
251    /// ListJobs method
252    fn list_jobs(
253        &self,
254    ) -> zbus::Result<
255        Vec<(
256            u32,
257            String,
258            String,
259            String,
260            zbus::zvariant::OwnedObjectPath,
261            zbus::zvariant::OwnedObjectPath,
262        )>,
263    >;
264
265    /// ListUnitFiles method
266    fn list_unit_files(&self) -> zbus::Result<Vec<(String, String)>>;
267
268    /// ListUnitFilesByPatterns method
269    fn list_unit_files_by_patterns(
270        &self,
271        states: &[&str],
272        patterns: &[&str],
273    ) -> zbus::Result<Vec<(String, String)>>;
274
275    /// ListUnits method
276    fn list_units(
277        &self,
278    ) -> zbus::Result<
279        Vec<(
280            String,
281            String,
282            String,
283            String,
284            String,
285            String,
286            zbus::zvariant::OwnedObjectPath,
287            u32,
288            String,
289            zbus::zvariant::OwnedObjectPath,
290        )>,
291    >;
292
293    /// ListUnitsByNames method
294    fn list_units_by_names(
295        &self,
296        names: &[&str],
297    ) -> zbus::Result<
298        Vec<(
299            String,
300            String,
301            String,
302            String,
303            String,
304            String,
305            zbus::zvariant::OwnedObjectPath,
306            u32,
307            String,
308            zbus::zvariant::OwnedObjectPath,
309        )>,
310    >;
311
312    /// ListUnitsByPatterns method
313    fn list_units_by_patterns(
314        &self,
315        states: &[&str],
316        patterns: &[&str],
317    ) -> zbus::Result<
318        Vec<(
319            String,
320            String,
321            String,
322            String,
323            String,
324            String,
325            zbus::zvariant::OwnedObjectPath,
326            u32,
327            String,
328            zbus::zvariant::OwnedObjectPath,
329        )>,
330    >;
331
332    /// ListUnitsFiltered method
333    fn list_units_filtered(
334        &self,
335        states: &[&str],
336    ) -> zbus::Result<
337        Vec<(
338            String,
339            String,
340            String,
341            String,
342            String,
343            String,
344            zbus::zvariant::OwnedObjectPath,
345            u32,
346            String,
347            zbus::zvariant::OwnedObjectPath,
348        )>,
349    >;
350
351    /// LoadUnit method
352    fn load_unit(&self, name: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
353
354    /// LookupDynamicUserByName method
355    fn lookup_dynamic_user_by_name(&self, name: &str) -> zbus::Result<u32>;
356
357    /// LookupDynamicUserByUID method
358    #[zbus(name = "LookupDynamicUserByUID")]
359    fn lookup_dynamic_user_by_uid(&self, uid: u32) -> zbus::Result<String>;
360
361    /// MaskUnitFiles method
362    fn mask_unit_files(
363        &self,
364        files: &[&str],
365        runtime: bool,
366        force: bool,
367    ) -> zbus::Result<Vec<(String, String, String)>>;
368
369    /// MountImageUnit method
370    fn mount_image_unit(
371        &self,
372        name: &str,
373        source: &str,
374        destination: &str,
375        read_only: bool,
376        mkdir: bool,
377        options: &[&(&str, &str)],
378    ) -> zbus::Result<()>;
379
380    /// PowerOff method
381    fn power_off(&self) -> zbus::Result<()>;
382
383    /// PresetAllUnitFiles method
384    fn preset_all_unit_files(
385        &self,
386        mode: &str,
387        runtime: bool,
388        force: bool,
389    ) -> zbus::Result<Vec<(String, String, String)>>;
390
391    /// PresetUnitFiles method
392    fn preset_unit_files(
393        &self,
394        files: &[&str],
395        runtime: bool,
396        force: bool,
397    ) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
398
399    /// PresetUnitFilesWithMode method
400    fn preset_unit_files_with_mode(
401        &self,
402        files: &[&str],
403        mode: &str,
404        runtime: bool,
405        force: bool,
406    ) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
407
408    /// QueueSignalUnit method
409    fn queue_signal_unit(
410        &self,
411        name: &str,
412        whom: &str,
413        signal: i32,
414        value: i32,
415    ) -> zbus::Result<()>;
416
417    /// Reboot method
418    fn reboot(&self) -> zbus::Result<()>;
419
420    /// ReenableUnitFiles method
421    fn reenable_unit_files(
422        &self,
423        files: &[&str],
424        runtime: bool,
425        force: bool,
426    ) -> zbus::Result<(bool, Vec<(String, String, String)>)>;
427
428    /// Reexecute method
429    fn reexecute(&self) -> zbus::Result<()>;
430
431    /// RefUnit method
432    fn ref_unit(&self, name: &str) -> zbus::Result<()>;
433
434    /// Reload method
435    fn reload(&self) -> zbus::Result<()>;
436
437    /// ReloadOrRestartUnit method
438    fn reload_or_restart_unit(
439        &self,
440        name: &str,
441        mode: &str,
442    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
443
444    /// ReloadOrTryRestartUnit method
445    fn reload_or_try_restart_unit(
446        &self,
447        name: &str,
448        mode: &str,
449    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
450
451    /// ReloadUnit method
452    fn reload_unit(&self, name: &str, mode: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
453
454    /// ResetFailed method
455    fn reset_failed(&self) -> zbus::Result<()>;
456
457    /// ResetFailedUnit method
458    fn reset_failed_unit(&self, name: &str) -> zbus::Result<()>;
459
460    /// RestartUnit method
461    fn restart_unit(&self, name: &str, mode: &str)
462        -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
463
464    /// RevertUnitFiles method
465    fn revert_unit_files(&self, files: &[&str]) -> zbus::Result<Vec<(String, String, String)>>;
466
467    /// SetDefaultTarget method
468    fn set_default_target(
469        &self,
470        name: &str,
471        force: bool,
472    ) -> zbus::Result<Vec<(String, String, String)>>;
473
474    /// SetEnvironment method
475    fn set_environment(&self, assignments: &[&str]) -> zbus::Result<()>;
476
477    /// SetExitCode method
478    fn set_exit_code(&self, number: u8) -> zbus::Result<()>;
479
480    /// SetShowStatus method
481    fn set_show_status(&self, mode: &str) -> zbus::Result<()>;
482
483    /// SetUnitProperties method
484    fn set_unit_properties(
485        &self,
486        name: &str,
487        runtime: bool,
488        properties: &[&(&str, &zbus::zvariant::Value<'_>)],
489    ) -> zbus::Result<()>;
490
491    /// SoftReboot method
492    fn soft_reboot(&self, new_root: &str) -> zbus::Result<()>;
493
494    /// StartAuxiliaryScope method
495    fn start_auxiliary_scope(
496        &self,
497        name: &str,
498        pidfds: &[zbus::zvariant::Fd<'_>],
499        flags: u64,
500        properties: &[&(&str, &zbus::zvariant::Value<'_>)],
501    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
502
503    /// StartTransientUnit method
504    #[allow(clippy::type_complexity)]
505    fn start_transient_unit(
506        &self,
507        name: &str,
508        mode: &str,
509        properties: &[&(&str, &zbus::zvariant::Value<'_>)],
510        aux: &[&(&str, &[&(&str, &zbus::zvariant::Value<'_>)])],
511    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
512
513    /// StartUnit method
514    fn start_unit(&self, name: &str, mode: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
515
516    /// StartUnitReplace method
517    fn start_unit_replace(
518        &self,
519        old_unit: &str,
520        new_unit: &str,
521        mode: &str,
522    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
523
524    /// StartUnitWithFlags method
525    fn start_unit_with_flags(
526        &self,
527        name: &str,
528        mode: &str,
529        flags: u64,
530    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
531
532    /// StopUnit method
533    fn stop_unit(&self, name: &str, mode: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
534
535    /// Subscribe method
536    fn subscribe(&self) -> zbus::Result<()>;
537
538    /// SwitchRoot method
539    fn switch_root(&self, new_root: &str, init: &str) -> zbus::Result<()>;
540
541    /// ThawUnit method
542    fn thaw_unit(&self, name: &str) -> zbus::Result<()>;
543
544    /// TryRestartUnit method
545    fn try_restart_unit(
546        &self,
547        name: &str,
548        mode: &str,
549    ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
550
551    /// UnmaskUnitFiles method
552    fn unmask_unit_files(
553        &self,
554        files: &[&str],
555        runtime: bool,
556    ) -> zbus::Result<Vec<(String, String, String)>>;
557
558    /// UnrefUnit method
559    fn unref_unit(&self, name: &str) -> zbus::Result<()>;
560
561    /// UnsetAndSetEnvironment method
562    fn unset_and_set_environment(&self, names: &[&str], assignments: &[&str]) -> zbus::Result<()>;
563
564    /// UnsetEnvironment method
565    fn unset_environment(&self, names: &[&str]) -> zbus::Result<()>;
566
567    /// Unsubscribe method
568    fn unsubscribe(&self) -> zbus::Result<()>;
569
570    /// JobNew signal
571    #[zbus(signal)]
572    fn job_new(&self, id: u32, job: zbus::zvariant::ObjectPath<'_>, unit: &str)
573        -> zbus::Result<()>;
574
575    /// JobRemoved signal
576    #[zbus(signal)]
577    fn job_removed(
578        &self,
579        id: u32,
580        job: zbus::zvariant::ObjectPath<'_>,
581        unit: &str,
582        result: &str,
583    ) -> zbus::Result<()>;
584
585    /// Reloading signal
586    #[zbus(signal)]
587    fn reloading(&self, active: bool) -> zbus::Result<()>;
588
589    /// StartupFinished signal
590    #[zbus(signal)]
591    fn startup_finished(
592        &self,
593        firmware: u64,
594        loader: u64,
595        kernel: u64,
596        initrd: u64,
597        userspace: u64,
598        total: u64,
599    ) -> zbus::Result<()>;
600
601    /// UnitFilesChanged signal
602    #[zbus(signal)]
603    fn unit_files_changed(&self) -> zbus::Result<()>;
604
605    /// UnitNew signal
606    #[zbus(signal)]
607    fn unit_new(&self, id: &str, unit: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
608
609    /// UnitRemoved signal
610    #[zbus(signal)]
611    fn unit_removed(&self, id: &str, unit: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
612
613    /// Architecture property
614    #[zbus(property)]
615    fn architecture(&self) -> zbus::Result<String>;
616
617    /// ConfidentialVirtualization property
618    #[zbus(property)]
619    fn confidential_virtualization(&self) -> zbus::Result<String>;
620
621    /// ConfirmSpawn property
622    #[zbus(property)]
623    fn confirm_spawn(&self) -> zbus::Result<bool>;
624
625    /// ControlGroup property
626    #[zbus(property)]
627    fn control_group(&self) -> zbus::Result<String>;
628
629    /// CtrlAltDelBurstAction property
630    #[zbus(property)]
631    fn ctrl_alt_del_burst_action(&self) -> zbus::Result<String>;
632
633    /// DefaultBlockIOAccounting property
634    #[zbus(property, name = "DefaultBlockIOAccounting")]
635    fn default_block_ioaccounting(&self) -> zbus::Result<bool>;
636
637    /// DefaultCPUAccounting property
638    #[zbus(property, name = "DefaultCPUAccounting")]
639    fn default_cpuaccounting(&self) -> zbus::Result<bool>;
640
641    /// DefaultDeviceTimeoutUSec property
642    #[zbus(property, name = "DefaultDeviceTimeoutUSec")]
643    fn default_device_timeout_usec(&self) -> zbus::Result<u64>;
644
645    /// DefaultIOAccounting property
646    #[zbus(property, name = "DefaultIOAccounting")]
647    fn default_ioaccounting(&self) -> zbus::Result<bool>;
648
649    /// DefaultIPAccounting property
650    #[zbus(property, name = "DefaultIPAccounting")]
651    fn default_ipaccounting(&self) -> zbus::Result<bool>;
652
653    /// DefaultLimitAS property
654    #[zbus(property, name = "DefaultLimitAS")]
655    fn default_limit_as(&self) -> zbus::Result<u64>;
656
657    /// DefaultLimitASSoft property
658    #[zbus(property, name = "DefaultLimitASSoft")]
659    fn default_limit_assoft(&self) -> zbus::Result<u64>;
660
661    /// DefaultLimitCORE property
662    #[zbus(property, name = "DefaultLimitCORE")]
663    fn default_limit_core(&self) -> zbus::Result<u64>;
664
665    /// DefaultLimitCORESoft property
666    #[zbus(property, name = "DefaultLimitCORESoft")]
667    fn default_limit_coresoft(&self) -> zbus::Result<u64>;
668
669    /// DefaultLimitCPU property
670    #[zbus(property, name = "DefaultLimitCPU")]
671    fn default_limit_cpu(&self) -> zbus::Result<u64>;
672
673    /// DefaultLimitCPUSoft property
674    #[zbus(property, name = "DefaultLimitCPUSoft")]
675    fn default_limit_cpusoft(&self) -> zbus::Result<u64>;
676
677    /// DefaultLimitDATA property
678    #[zbus(property, name = "DefaultLimitDATA")]
679    fn default_limit_data(&self) -> zbus::Result<u64>;
680
681    /// DefaultLimitDATASoft property
682    #[zbus(property, name = "DefaultLimitDATASoft")]
683    fn default_limit_datasoft(&self) -> zbus::Result<u64>;
684
685    /// DefaultLimitFSIZE property
686    #[zbus(property, name = "DefaultLimitFSIZE")]
687    fn default_limit_fsize(&self) -> zbus::Result<u64>;
688
689    /// DefaultLimitFSIZESoft property
690    #[zbus(property, name = "DefaultLimitFSIZESoft")]
691    fn default_limit_fsizesoft(&self) -> zbus::Result<u64>;
692
693    /// DefaultLimitLOCKS property
694    #[zbus(property, name = "DefaultLimitLOCKS")]
695    fn default_limit_locks(&self) -> zbus::Result<u64>;
696
697    /// DefaultLimitLOCKSSoft property
698    #[zbus(property, name = "DefaultLimitLOCKSSoft")]
699    fn default_limit_lockssoft(&self) -> zbus::Result<u64>;
700
701    /// DefaultLimitMEMLOCK property
702    #[zbus(property, name = "DefaultLimitMEMLOCK")]
703    fn default_limit_memlock(&self) -> zbus::Result<u64>;
704
705    /// DefaultLimitMEMLOCKSoft property
706    #[zbus(property, name = "DefaultLimitMEMLOCKSoft")]
707    fn default_limit_memlocksoft(&self) -> zbus::Result<u64>;
708
709    /// DefaultLimitMSGQUEUE property
710    #[zbus(property, name = "DefaultLimitMSGQUEUE")]
711    fn default_limit_msgqueue(&self) -> zbus::Result<u64>;
712
713    /// DefaultLimitMSGQUEUESoft property
714    #[zbus(property, name = "DefaultLimitMSGQUEUESoft")]
715    fn default_limit_msgqueuesoft(&self) -> zbus::Result<u64>;
716
717    /// DefaultLimitNICE property
718    #[zbus(property, name = "DefaultLimitNICE")]
719    fn default_limit_nice(&self) -> zbus::Result<u64>;
720
721    /// DefaultLimitNICESoft property
722    #[zbus(property, name = "DefaultLimitNICESoft")]
723    fn default_limit_nicesoft(&self) -> zbus::Result<u64>;
724
725    /// DefaultLimitNOFILE property
726    #[zbus(property, name = "DefaultLimitNOFILE")]
727    fn default_limit_nofile(&self) -> zbus::Result<u64>;
728
729    /// DefaultLimitNOFILESoft property
730    #[zbus(property, name = "DefaultLimitNOFILESoft")]
731    fn default_limit_nofilesoft(&self) -> zbus::Result<u64>;
732
733    /// DefaultLimitNPROC property
734    #[zbus(property, name = "DefaultLimitNPROC")]
735    fn default_limit_nproc(&self) -> zbus::Result<u64>;
736
737    /// DefaultLimitNPROCSoft property
738    #[zbus(property, name = "DefaultLimitNPROCSoft")]
739    fn default_limit_nprocsoft(&self) -> zbus::Result<u64>;
740
741    /// DefaultLimitRSS property
742    #[zbus(property, name = "DefaultLimitRSS")]
743    fn default_limit_rss(&self) -> zbus::Result<u64>;
744
745    /// DefaultLimitRSSSoft property
746    #[zbus(property, name = "DefaultLimitRSSSoft")]
747    fn default_limit_rsssoft(&self) -> zbus::Result<u64>;
748
749    /// DefaultLimitRTPRIO property
750    #[zbus(property, name = "DefaultLimitRTPRIO")]
751    fn default_limit_rtprio(&self) -> zbus::Result<u64>;
752
753    /// DefaultLimitRTPRIOSoft property
754    #[zbus(property, name = "DefaultLimitRTPRIOSoft")]
755    fn default_limit_rtpriosoft(&self) -> zbus::Result<u64>;
756
757    /// DefaultLimitRTTIME property
758    #[zbus(property, name = "DefaultLimitRTTIME")]
759    fn default_limit_rttime(&self) -> zbus::Result<u64>;
760
761    /// DefaultLimitRTTIMESoft property
762    #[zbus(property, name = "DefaultLimitRTTIMESoft")]
763    fn default_limit_rttimesoft(&self) -> zbus::Result<u64>;
764
765    /// DefaultLimitSIGPENDING property
766    #[zbus(property, name = "DefaultLimitSIGPENDING")]
767    fn default_limit_sigpending(&self) -> zbus::Result<u64>;
768
769    /// DefaultLimitSIGPENDINGSoft property
770    #[zbus(property, name = "DefaultLimitSIGPENDINGSoft")]
771    fn default_limit_sigpendingsoft(&self) -> zbus::Result<u64>;
772
773    /// DefaultLimitSTACK property
774    #[zbus(property, name = "DefaultLimitSTACK")]
775    fn default_limit_stack(&self) -> zbus::Result<u64>;
776
777    /// DefaultLimitSTACKSoft property
778    #[zbus(property, name = "DefaultLimitSTACKSoft")]
779    fn default_limit_stacksoft(&self) -> zbus::Result<u64>;
780
781    /// DefaultMemoryAccounting property
782    #[zbus(property)]
783    fn default_memory_accounting(&self) -> zbus::Result<bool>;
784
785    /// DefaultMemoryPressureThresholdUSec property
786    #[zbus(property, name = "DefaultMemoryPressureThresholdUSec")]
787    fn default_memory_pressure_threshold_usec(&self) -> zbus::Result<u64>;
788
789    /// DefaultMemoryPressureWatch property
790    #[zbus(property)]
791    fn default_memory_pressure_watch(&self) -> zbus::Result<String>;
792
793    /// DefaultOOMPolicy property
794    #[zbus(property, name = "DefaultOOMPolicy")]
795    fn default_oompolicy(&self) -> zbus::Result<String>;
796
797    /// DefaultOOMScoreAdjust property
798    #[zbus(property, name = "DefaultOOMScoreAdjust")]
799    fn default_oomscore_adjust(&self) -> zbus::Result<i32>;
800
801    /// DefaultRestartUSec property
802    #[zbus(property, name = "DefaultRestartUSec")]
803    fn default_restart_usec(&self) -> zbus::Result<u64>;
804
805    /// DefaultStandardError property
806    #[zbus(property)]
807    fn default_standard_error(&self) -> zbus::Result<String>;
808
809    /// DefaultStandardOutput property
810    #[zbus(property)]
811    fn default_standard_output(&self) -> zbus::Result<String>;
812
813    /// DefaultStartLimitBurst property
814    #[zbus(property)]
815    fn default_start_limit_burst(&self) -> zbus::Result<u32>;
816
817    /// DefaultStartLimitIntervalUSec property
818    #[zbus(property, name = "DefaultStartLimitIntervalUSec")]
819    fn default_start_limit_interval_usec(&self) -> zbus::Result<u64>;
820
821    /// DefaultTasksAccounting property
822    #[zbus(property)]
823    fn default_tasks_accounting(&self) -> zbus::Result<bool>;
824
825    /// DefaultTasksMax property
826    #[zbus(property)]
827    fn default_tasks_max(&self) -> zbus::Result<u64>;
828
829    /// DefaultTimeoutAbortUSec property
830    #[zbus(property, name = "DefaultTimeoutAbortUSec")]
831    fn default_timeout_abort_usec(&self) -> zbus::Result<u64>;
832
833    /// DefaultTimeoutStartUSec property
834    #[zbus(property, name = "DefaultTimeoutStartUSec")]
835    fn default_timeout_start_usec(&self) -> zbus::Result<u64>;
836
837    /// DefaultTimeoutStopUSec property
838    #[zbus(property, name = "DefaultTimeoutStopUSec")]
839    fn default_timeout_stop_usec(&self) -> zbus::Result<u64>;
840
841    /// DefaultTimerAccuracyUSec property
842    #[zbus(property, name = "DefaultTimerAccuracyUSec")]
843    fn default_timer_accuracy_usec(&self) -> zbus::Result<u64>;
844
845    /// Environment property
846    #[zbus(property)]
847    fn environment(&self) -> zbus::Result<Vec<String>>;
848
849    /// ExitCode property
850    #[zbus(property)]
851    fn exit_code(&self) -> zbus::Result<u8>;
852
853    /// Features property
854    #[zbus(property)]
855    fn features(&self) -> zbus::Result<String>;
856
857    /// FinishTimestamp property
858    #[zbus(property)]
859    fn finish_timestamp(&self) -> zbus::Result<u64>;
860
861    /// FinishTimestampMonotonic property
862    #[zbus(property)]
863    fn finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
864
865    /// FirmwareTimestamp property
866    #[zbus(property)]
867    fn firmware_timestamp(&self) -> zbus::Result<u64>;
868
869    /// FirmwareTimestampMonotonic property
870    #[zbus(property)]
871    fn firmware_timestamp_monotonic(&self) -> zbus::Result<u64>;
872
873    /// GeneratorsFinishTimestamp property
874    #[zbus(property)]
875    fn generators_finish_timestamp(&self) -> zbus::Result<u64>;
876
877    /// GeneratorsFinishTimestampMonotonic property
878    #[zbus(property)]
879    fn generators_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
880
881    /// GeneratorsStartTimestamp property
882    #[zbus(property)]
883    fn generators_start_timestamp(&self) -> zbus::Result<u64>;
884
885    /// GeneratorsStartTimestampMonotonic property
886    #[zbus(property)]
887    fn generators_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
888
889    /// InitRDGeneratorsFinishTimestamp property
890    #[zbus(property, name = "InitRDGeneratorsFinishTimestamp")]
891    fn init_rdgenerators_finish_timestamp(&self) -> zbus::Result<u64>;
892
893    /// InitRDGeneratorsFinishTimestampMonotonic property
894    #[zbus(property, name = "InitRDGeneratorsFinishTimestampMonotonic")]
895    fn init_rdgenerators_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
896
897    /// InitRDGeneratorsStartTimestamp property
898    #[zbus(property, name = "InitRDGeneratorsStartTimestamp")]
899    fn init_rdgenerators_start_timestamp(&self) -> zbus::Result<u64>;
900
901    /// InitRDGeneratorsStartTimestampMonotonic property
902    #[zbus(property, name = "InitRDGeneratorsStartTimestampMonotonic")]
903    fn init_rdgenerators_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
904
905    /// InitRDSecurityFinishTimestamp property
906    #[zbus(property, name = "InitRDSecurityFinishTimestamp")]
907    fn init_rdsecurity_finish_timestamp(&self) -> zbus::Result<u64>;
908
909    /// InitRDSecurityFinishTimestampMonotonic property
910    #[zbus(property, name = "InitRDSecurityFinishTimestampMonotonic")]
911    fn init_rdsecurity_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
912
913    /// InitRDSecurityStartTimestamp property
914    #[zbus(property, name = "InitRDSecurityStartTimestamp")]
915    fn init_rdsecurity_start_timestamp(&self) -> zbus::Result<u64>;
916
917    /// InitRDSecurityStartTimestampMonotonic property
918    #[zbus(property, name = "InitRDSecurityStartTimestampMonotonic")]
919    fn init_rdsecurity_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
920
921    /// InitRDTimestamp property
922    #[zbus(property, name = "InitRDTimestamp")]
923    fn init_rdtimestamp(&self) -> zbus::Result<u64>;
924
925    /// InitRDTimestampMonotonic property
926    #[zbus(property, name = "InitRDTimestampMonotonic")]
927    fn init_rdtimestamp_monotonic(&self) -> zbus::Result<u64>;
928
929    /// InitRDUnitsLoadFinishTimestamp property
930    #[zbus(property, name = "InitRDUnitsLoadFinishTimestamp")]
931    fn init_rdunits_load_finish_timestamp(&self) -> zbus::Result<u64>;
932
933    /// InitRDUnitsLoadFinishTimestampMonotonic property
934    #[zbus(property, name = "InitRDUnitsLoadFinishTimestampMonotonic")]
935    fn init_rdunits_load_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
936
937    /// InitRDUnitsLoadStartTimestamp property
938    #[zbus(property, name = "InitRDUnitsLoadStartTimestamp")]
939    fn init_rdunits_load_start_timestamp(&self) -> zbus::Result<u64>;
940
941    /// InitRDUnitsLoadStartTimestampMonotonic property
942    #[zbus(property, name = "InitRDUnitsLoadStartTimestampMonotonic")]
943    fn init_rdunits_load_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
944
945    /// KExecWatchdogUSec property
946    #[zbus(property, name = "KExecWatchdogUSec")]
947    fn kexec_watchdog_usec(&self) -> zbus::Result<u64>;
948    #[zbus(property, name = "KExecWatchdogUSec")]
949    fn set_kexec_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
950
951    /// KernelTimestamp property
952    #[zbus(property)]
953    fn kernel_timestamp(&self) -> zbus::Result<u64>;
954
955    /// KernelTimestampMonotonic property
956    #[zbus(property)]
957    fn kernel_timestamp_monotonic(&self) -> zbus::Result<u64>;
958
959    /// LoaderTimestamp property
960    #[zbus(property)]
961    fn loader_timestamp(&self) -> zbus::Result<u64>;
962
963    /// LoaderTimestampMonotonic property
964    #[zbus(property)]
965    fn loader_timestamp_monotonic(&self) -> zbus::Result<u64>;
966
967    /// LogLevel property
968    #[zbus(property)]
969    fn log_level(&self) -> zbus::Result<String>;
970    #[zbus(property)]
971    fn set_log_level(&self, value: &str) -> zbus::Result<()>;
972
973    /// LogTarget property
974    #[zbus(property)]
975    fn log_target(&self) -> zbus::Result<String>;
976    #[zbus(property)]
977    fn set_log_target(&self, value: &str) -> zbus::Result<()>;
978
979    /// NFailedJobs property
980    #[zbus(property, name = "NFailedJobs")]
981    fn nfailed_jobs(&self) -> zbus::Result<u32>;
982
983    /// NFailedUnits property
984    #[zbus(property, name = "NFailedUnits")]
985    fn nfailed_units(&self) -> zbus::Result<u32>;
986
987    /// NInstalledJobs property
988    #[zbus(property, name = "NInstalledJobs")]
989    fn ninstalled_jobs(&self) -> zbus::Result<u32>;
990
991    /// NJobs property
992    #[zbus(property, name = "NJobs")]
993    fn njobs(&self) -> zbus::Result<u32>;
994
995    /// NNames property
996    #[zbus(property, name = "NNames")]
997    fn nnames(&self) -> zbus::Result<u32>;
998
999    /// Progress property
1000    #[zbus(property)]
1001    fn progress(&self) -> zbus::Result<f64>;
1002
1003    /// RebootWatchdogUSec property
1004    #[zbus(property, name = "RebootWatchdogUSec")]
1005    fn reboot_watchdog_usec(&self) -> zbus::Result<u64>;
1006    #[zbus(property, name = "RebootWatchdogUSec")]
1007    fn set_reboot_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
1008
1009    /// RuntimeWatchdogPreGovernor property
1010    #[zbus(property)]
1011    fn runtime_watchdog_pre_governor(&self) -> zbus::Result<String>;
1012    #[zbus(property)]
1013    fn set_runtime_watchdog_pre_governor(&self, value: &str) -> zbus::Result<()>;
1014
1015    /// RuntimeWatchdogPreUSec property
1016    #[zbus(property, name = "RuntimeWatchdogPreUSec")]
1017    fn runtime_watchdog_pre_usec(&self) -> zbus::Result<u64>;
1018    #[zbus(property, name = "RuntimeWatchdogPreUSec")]
1019    fn set_runtime_watchdog_pre_usec(&self, value: u64) -> zbus::Result<()>;
1020
1021    /// RuntimeWatchdogUSec property
1022    #[zbus(property, name = "RuntimeWatchdogUSec")]
1023    fn runtime_watchdog_usec(&self) -> zbus::Result<u64>;
1024    #[zbus(property, name = "RuntimeWatchdogUSec")]
1025    fn set_runtime_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
1026
1027    /// SecurityFinishTimestamp property
1028    #[zbus(property)]
1029    fn security_finish_timestamp(&self) -> zbus::Result<u64>;
1030
1031    /// SecurityFinishTimestampMonotonic property
1032    #[zbus(property)]
1033    fn security_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
1034
1035    /// SecurityStartTimestamp property
1036    #[zbus(property)]
1037    fn security_start_timestamp(&self) -> zbus::Result<u64>;
1038
1039    /// SecurityStartTimestampMonotonic property
1040    #[zbus(property)]
1041    fn security_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
1042
1043    /// ServiceWatchdogs property
1044    #[zbus(property)]
1045    fn service_watchdogs(&self) -> zbus::Result<bool>;
1046    #[zbus(property)]
1047    fn set_service_watchdogs(&self, value: bool) -> zbus::Result<()>;
1048
1049    /// ShowStatus property
1050    #[zbus(property)]
1051    fn show_status(&self) -> zbus::Result<bool>;
1052
1053    /// ShutdownStartTimestamp property
1054    #[zbus(property)]
1055    fn shutdown_start_timestamp(&self) -> zbus::Result<u64>;
1056
1057    /// ShutdownStartTimestampMonotonic property
1058    #[zbus(property)]
1059    fn shutdown_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
1060
1061    /// SoftRebootsCount property
1062    #[zbus(property)]
1063    fn soft_reboots_count(&self) -> zbus::Result<u32>;
1064
1065    /// SystemState property
1066    #[zbus(property)]
1067    fn system_state(&self) -> zbus::Result<String>;
1068
1069    /// Tainted property
1070    #[zbus(property)]
1071    fn tainted(&self) -> zbus::Result<String>;
1072
1073    /// TimerSlackNSec property
1074    #[zbus(property, name = "TimerSlackNSec")]
1075    fn timer_slack_nsec(&self) -> zbus::Result<u64>;
1076
1077    /// UnitPath property
1078    #[zbus(property)]
1079    fn unit_path(&self) -> zbus::Result<Vec<String>>;
1080
1081    /// UnitsLoadFinishTimestamp property
1082    #[zbus(property)]
1083    fn units_load_finish_timestamp(&self) -> zbus::Result<u64>;
1084
1085    /// UnitsLoadFinishTimestampMonotonic property
1086    #[zbus(property)]
1087    fn units_load_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
1088
1089    /// UnitsLoadStartTimestamp property
1090    #[zbus(property)]
1091    fn units_load_start_timestamp(&self) -> zbus::Result<u64>;
1092
1093    /// UnitsLoadStartTimestampMonotonic property
1094    #[zbus(property)]
1095    fn units_load_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
1096
1097    /// UnitsLoadTimestamp property
1098    #[zbus(property)]
1099    fn units_load_timestamp(&self) -> zbus::Result<u64>;
1100
1101    /// UnitsLoadTimestampMonotonic property
1102    #[zbus(property)]
1103    fn units_load_timestamp_monotonic(&self) -> zbus::Result<u64>;
1104
1105    /// UserspaceTimestamp property
1106    #[zbus(property)]
1107    fn userspace_timestamp(&self) -> zbus::Result<u64>;
1108
1109    /// UserspaceTimestampMonotonic property
1110    #[zbus(property)]
1111    fn userspace_timestamp_monotonic(&self) -> zbus::Result<u64>;
1112
1113    /// Version property
1114    #[zbus(property)]
1115    fn version(&self) -> zbus::Result<String>;
1116
1117    /// Virtualization property
1118    #[zbus(property)]
1119    fn virtualization(&self) -> zbus::Result<String>;
1120
1121    /// WatchdogDevice property
1122    #[zbus(property)]
1123    fn watchdog_device(&self) -> zbus::Result<String>;
1124
1125    /// WatchdogLastPingTimestamp property
1126    #[zbus(property)]
1127    fn watchdog_last_ping_timestamp(&self) -> zbus::Result<u64>;
1128
1129    /// WatchdogLastPingTimestampMonotonic property
1130    #[zbus(property)]
1131    fn watchdog_last_ping_timestamp_monotonic(&self) -> zbus::Result<u64>;
1132}