1use zbus::proxy;
23
24use crate::{Change, EnquedJob, Job, LoadState, Mode, Process, Unit, UnitFileFlags, UnitFileState};
25
26#[proxy(
27 interface = "org.freedesktop.systemd1.Manager",
28 default_service = "org.freedesktop.systemd1",
29 default_path = "/org/freedesktop/systemd1"
30)]
31pub trait Manager {
32 fn abandon_scope(&self, name: &str) -> zbus::Result<()>;
34
35 fn add_dependency_unit_files(
37 &self,
38 files: &[&str],
39 target: &str,
40 type_: &str,
41 runtime: bool,
42 force: bool,
43 ) -> zbus::Result<Vec<Change>>;
44
45 fn attach_processes_to_unit(
47 &self,
48 unit_name: &str,
49 subcgroup: &str,
50 pids: &[u32],
51 ) -> zbus::Result<()>;
52
53 fn bind_mount_unit(
55 &self,
56 name: &str,
57 source: &str,
58 destination: &str,
59 read_only: bool,
60 mkdir: bool,
61 ) -> zbus::Result<()>;
62
63 fn cancel_job(&self, id: u32) -> zbus::Result<()>;
65
66 fn clean_unit(&self, name: &str, mask: &[&str]) -> zbus::Result<()>;
68
69 fn clear_jobs(&self) -> zbus::Result<()>;
71
72 fn disable_unit_files(&self, files: &[&str], runtime: bool) -> zbus::Result<Vec<Change>>;
74
75 fn disable_unit_files_with_flags(
77 &self,
78 files: &[&str],
79 flags: UnitFileFlags,
80 ) -> zbus::Result<Vec<Change>>;
81
82 fn dump(&self) -> zbus::Result<String>;
84
85 fn dump_by_file_descriptor(&self) -> zbus::Result<zbus::zvariant::OwnedFd>;
87
88 fn enable_unit_files(
90 &self,
91 files: &[&str],
92 runtime: bool,
93 force: bool,
94 ) -> zbus::Result<(bool, Vec<Change>)>;
95
96 fn enable_unit_files_with_flags(
98 &self,
99 files: &[&str],
100 flags: UnitFileFlags,
101 ) -> zbus::Result<(bool, Vec<Change>)>;
102
103 fn enqueue_marked_jobs(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
105
106 fn enqueue_unit_job(
108 &self,
109 name: &str,
110 job_type: &str,
111 job_mode: Mode,
112 ) -> zbus::Result<EnquedJob>;
113
114 fn exit(&self) -> zbus::Result<()>;
116
117 fn freeze_unit(&self, name: &str) -> zbus::Result<()>;
119
120 fn get_default_target(&self) -> zbus::Result<String>;
122
123 fn get_dynamic_users(&self) -> zbus::Result<Vec<(u32, String)>>;
125
126 fn get_job(&self, id: u32) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
128
129 fn get_job_after(&self, id: u32) -> zbus::Result<Vec<Job>>;
131
132 fn get_job_before(&self, id: u32) -> zbus::Result<Vec<Job>>;
134
135 fn get_unit(&self, name: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
137
138 fn get_unit_by_control_group(
140 &self,
141 cgroup: &str,
142 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
143
144 #[zbus(name = "GetUnitByInvocationID")]
146 fn get_unit_by_invocation_id(
147 &self,
148 invocation_id: &[u8],
149 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
150
151 #[zbus(name = "GetUnitByPID")]
153 fn get_unit_by_pid(&self, pid: u32) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
154
155 fn get_unit_file_links(&self, name: &str, runtime: bool) -> zbus::Result<Vec<String>>;
157
158 fn get_unit_file_state(&self, file: &str) -> zbus::Result<UnitFileState>;
160
161 fn get_unit_processes(&self, name: &str) -> zbus::Result<Vec<Process>>;
163
164 fn halt(&self) -> zbus::Result<()>;
166
167 #[zbus(name = "KExec")]
169 fn kexec(&self) -> zbus::Result<()>;
170
171 fn kill_unit(&self, name: &str, whom: &str, signal: i32) -> zbus::Result<()>;
173
174 fn link_unit_files(
176 &self,
177 files: &[&str],
178 runtime: bool,
179 force: bool,
180 ) -> zbus::Result<Vec<Change>>;
181
182 fn list_jobs(&self) -> zbus::Result<Vec<Job>>;
184
185 fn list_unit_files(&self) -> zbus::Result<Vec<(String, String)>>;
187
188 fn list_unit_files_by_patterns(
190 &self,
191 states: &[LoadState],
192 patterns: &[&str],
193 ) -> zbus::Result<Vec<(String, String)>>;
194
195 fn list_units(&self) -> zbus::Result<Vec<Unit>>;
197
198 fn list_units_by_names(&self, names: &[&str]) -> zbus::Result<Vec<Unit>>;
200
201 fn list_units_by_patterns(
203 &self,
204 states: &[LoadState],
205 patterns: &[&str],
206 ) -> zbus::Result<Vec<Unit>>;
207
208 fn list_units_filtered(&self, states: &[LoadState]) -> zbus::Result<Vec<Unit>>;
210
211 fn load_unit(&self, name: &str) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
213
214 fn lookup_dynamic_user_by_name(&self, name: &str) -> zbus::Result<u32>;
216
217 #[zbus(name = "LookupDynamicUserByUID")]
219 fn lookup_dynamic_user_by_uid(&self, uid: u32) -> zbus::Result<String>;
220
221 fn mask_unit_files(
223 &self,
224 files: &[&str],
225 runtime: bool,
226 force: bool,
227 ) -> zbus::Result<Vec<Change>>;
228
229 fn mount_image_unit(
231 &self,
232 name: &str,
233 source: &str,
234 destination: &str,
235 read_only: bool,
236 mkdir: bool,
237 options: &[(&str, &str)],
238 ) -> zbus::Result<()>;
239
240 fn power_off(&self) -> zbus::Result<()>;
242
243 fn preset_all_unit_files(
245 &self,
246 mode: Mode,
247 runtime: bool,
248 force: bool,
249 ) -> zbus::Result<Vec<Change>>;
250
251 fn preset_unit_files(
253 &self,
254 files: &[&str],
255 runtime: bool,
256 force: bool,
257 ) -> zbus::Result<(bool, Vec<Change>)>;
258
259 fn preset_unit_files_with_mode(
261 &self,
262 files: &[&str],
263 mode: Mode,
264 runtime: bool,
265 force: bool,
266 ) -> zbus::Result<(bool, Vec<Change>)>;
267
268 fn reboot(&self) -> zbus::Result<()>;
270
271 fn reenable_unit_files(
273 &self,
274 files: &[&str],
275 runtime: bool,
276 force: bool,
277 ) -> zbus::Result<(bool, Vec<Change>)>;
278
279 fn reexecute(&self) -> zbus::Result<()>;
281
282 fn ref_unit(&self, name: &str) -> zbus::Result<()>;
284
285 fn reload(&self) -> zbus::Result<()>;
287
288 fn reload_or_restart_unit(
290 &self,
291 name: &str,
292 mode: Mode,
293 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
294
295 fn reload_or_try_restart_unit(
297 &self,
298 name: &str,
299 mode: Mode,
300 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
301
302 fn reload_unit(&self, name: &str, mode: Mode) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
304
305 fn reset_failed(&self) -> zbus::Result<()>;
307
308 fn reset_failed_unit(&self, name: &str) -> zbus::Result<()>;
310
311 fn restart_unit(&self, name: &str, mode: Mode)
313 -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
314
315 fn revert_unit_files(&self, files: &[&str]) -> zbus::Result<Vec<Change>>;
317
318 fn set_default_target(&self, name: &str, force: bool) -> zbus::Result<Vec<Change>>;
320
321 fn set_environment(&self, assignments: &[&str]) -> zbus::Result<()>;
323
324 fn set_exit_code(&self, number: u8) -> zbus::Result<()>;
326
327 fn set_show_status(&self, mode: Mode) -> zbus::Result<()>;
329
330 fn set_unit_properties(
332 &self,
333 name: &str,
334 runtime: bool,
335 properties: &[(&str, zbus::zvariant::Value<'_>)],
336 ) -> zbus::Result<()>;
337
338 fn start_transient_unit(
340 &self,
341 name: &str,
342 mode: Mode,
343 properties: &[(&str, zbus::zvariant::Value<'_>)],
344 aux: &[(&str, &[(&str, zbus::zvariant::Value<'_>)])],
345 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
346
347 fn start_unit(&self, name: &str, mode: Mode) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
349
350 fn start_unit_replace(
352 &self,
353 old_unit: &str,
354 new_unit: &str,
355 mode: Mode,
356 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
357
358 fn start_unit_with_flags(
360 &self,
361 name: &str,
362 mode: Mode,
363 flags: UnitFileFlags,
364 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
365
366 fn stop_unit(&self, name: &str, mode: Mode) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
368
369 fn subscribe(&self) -> zbus::Result<()>;
371
372 fn switch_root(&self, new_root: &str, init: &str) -> zbus::Result<()>;
374
375 fn thaw_unit(&self, name: &str) -> zbus::Result<()>;
377
378 fn try_restart_unit(
380 &self,
381 name: &str,
382 mode: Mode,
383 ) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
384
385 fn unmask_unit_files(&self, files: &[&str], runtime: bool) -> zbus::Result<Vec<Change>>;
387
388 fn unref_unit(&self, name: &str) -> zbus::Result<()>;
390
391 fn unset_and_set_environment(&self, names: &[&str], assignments: &[&str]) -> zbus::Result<()>;
393
394 fn unset_environment(&self, names: &[&str]) -> zbus::Result<()>;
396
397 fn unsubscribe(&self) -> zbus::Result<()>;
399
400 #[zbus(signal)]
402 fn job_new(&self, id: u32, job: zbus::zvariant::ObjectPath<'_>, unit: &str)
403 -> zbus::Result<()>;
404
405 #[zbus(signal)]
407 fn job_removed(
408 &self,
409 id: u32,
410 job: zbus::zvariant::ObjectPath<'_>,
411 unit: &str,
412 result: &str,
413 ) -> zbus::Result<()>;
414
415 #[zbus(signal)]
417 fn reloading(&self, active: bool) -> zbus::Result<()>;
418
419 #[zbus(signal)]
421 fn startup_finished(
422 &self,
423 firmware: u64,
424 loader: u64,
425 kernel: u64,
426 initrd: u64,
427 userspace: u64,
428 total: u64,
429 ) -> zbus::Result<()>;
430
431 #[zbus(signal)]
433 fn unit_files_changed(&self) -> zbus::Result<()>;
434
435 #[zbus(signal)]
437 fn unit_new(&self, id: &str, unit: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
438
439 #[zbus(signal)]
441 fn unit_removed(&self, id: &str, unit: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
442
443 #[zbus(property)]
445 fn architecture(&self) -> zbus::Result<String>;
446
447 #[zbus(property)]
449 fn confirm_spawn(&self) -> zbus::Result<bool>;
450
451 #[zbus(property)]
453 fn control_group(&self) -> zbus::Result<String>;
454
455 #[zbus(property)]
457 fn ctrl_alt_del_burst_action(&self) -> zbus::Result<String>;
458
459 #[zbus(property, name = "DefaultBlockIOAccounting")]
461 fn default_block_io_accounting(&self) -> zbus::Result<bool>;
462
463 #[zbus(property, name = "DefaultCPUAccounting")]
465 fn default_cpu_accounting(&self) -> zbus::Result<bool>;
466
467 #[zbus(property, name = "DefaultLimitAS")]
469 fn default_limit_as(&self) -> zbus::Result<u64>;
470
471 #[zbus(property, name = "DefaultLimitASSoft")]
473 fn default_limit_as_soft(&self) -> zbus::Result<u64>;
474
475 #[zbus(property, name = "DefaultLimitCORE")]
477 fn default_limit_core(&self) -> zbus::Result<u64>;
478
479 #[zbus(property, name = "DefaultLimitCORESoft")]
481 fn default_limit_core_soft(&self) -> zbus::Result<u64>;
482
483 #[zbus(property, name = "DefaultLimitCPU")]
485 fn default_limit_cpu(&self) -> zbus::Result<u64>;
486
487 #[zbus(property, name = "DefaultLimitCPUSoft")]
489 fn default_limit_cpu_soft(&self) -> zbus::Result<u64>;
490
491 #[zbus(property, name = "DefaultLimitDATA")]
493 fn default_limit_data(&self) -> zbus::Result<u64>;
494
495 #[zbus(property, name = "DefaultLimitDATASoft")]
497 fn default_limit_data_soft(&self) -> zbus::Result<u64>;
498
499 #[zbus(property, name = "DefaultLimitFSIZE")]
501 fn default_limit_fsize(&self) -> zbus::Result<u64>;
502
503 #[zbus(property, name = "DefaultLimitFSIZESoft")]
505 fn default_limit_fsize_soft(&self) -> zbus::Result<u64>;
506
507 #[zbus(property, name = "DefaultLimitLOCKS")]
509 fn default_limit_locks(&self) -> zbus::Result<u64>;
510
511 #[zbus(property, name = "DefaultLimitLOCKSSoft")]
513 fn default_limit_locks_soft(&self) -> zbus::Result<u64>;
514
515 #[zbus(property, name = "DefaultLimitMEMLOCK")]
517 fn default_limit_memlock(&self) -> zbus::Result<u64>;
518
519 #[zbus(property, name = "DefaultLimitMEMLOCKSoft")]
521 fn default_limit_memlock_soft(&self) -> zbus::Result<u64>;
522
523 #[zbus(property, name = "DefaultLimitMSGQUEUE")]
525 fn default_limit_msgqueue(&self) -> zbus::Result<u64>;
526
527 #[zbus(property, name = "DefaultLimitMSGQUEUESoft")]
529 fn default_limit_msgqueue_soft(&self) -> zbus::Result<u64>;
530
531 #[zbus(property, name = "DefaultLimitNICE")]
533 fn default_limit_nice(&self) -> zbus::Result<u64>;
534
535 #[zbus(property, name = "DefaultLimitNICESoft")]
537 fn default_limit_nice_soft(&self) -> zbus::Result<u64>;
538
539 #[zbus(property, name = "DefaultLimitNOFILE")]
541 fn default_limit_nofile(&self) -> zbus::Result<u64>;
542
543 #[zbus(property, name = "DefaultLimitNOFILESoft")]
545 fn default_limit_nofile_soft(&self) -> zbus::Result<u64>;
546
547 #[zbus(property, name = "DefaultLimitNPROC")]
549 fn default_limit_nproc(&self) -> zbus::Result<u64>;
550
551 #[zbus(property, name = "DefaultLimitNPROCSoft")]
553 fn default_limit_nproc_soft(&self) -> zbus::Result<u64>;
554
555 #[zbus(property, name = "DefaultLimitRSS")]
557 fn default_limit_rss(&self) -> zbus::Result<u64>;
558
559 #[zbus(property, name = "DefaultLimitRSSSoft")]
561 fn default_limit_rss_soft(&self) -> zbus::Result<u64>;
562
563 #[zbus(property, name = "DefaultLimitRTPRIO")]
565 fn default_limit_rtprio(&self) -> zbus::Result<u64>;
566
567 #[zbus(property, name = "DefaultLimitRTPRIOSoft")]
569 fn default_limit_rtprio_soft(&self) -> zbus::Result<u64>;
570
571 #[zbus(property, name = "DefaultLimitRTTIME")]
573 fn default_limit_rttime(&self) -> zbus::Result<u64>;
574
575 #[zbus(property, name = "DefaultLimitRTTIMESoft")]
577 fn default_limit_rttime_soft(&self) -> zbus::Result<u64>;
578
579 #[zbus(property, name = "DefaultLimitSIGPENDING")]
581 fn default_limit_sigpending(&self) -> zbus::Result<u64>;
582
583 #[zbus(property, name = "DefaultLimitSIGPENDINGSoft")]
585 fn default_limit_sigpending_soft(&self) -> zbus::Result<u64>;
586
587 #[zbus(property, name = "DefaultLimitSTACK")]
589 fn default_limit_stack(&self) -> zbus::Result<u64>;
590
591 #[zbus(property, name = "DefaultLimitSTACKSoft")]
593 fn default_limit_stack_soft(&self) -> zbus::Result<u64>;
594
595 #[zbus(property)]
597 fn default_memory_accounting(&self) -> zbus::Result<bool>;
598
599 #[zbus(property, name = "DefaultOOMPolicy")]
601 fn default_oom_policy(&self) -> zbus::Result<String>;
602
603 #[zbus(property, name = "DefaultOOMScoreAdjust")]
605 fn default_oom_score_adjust(&self) -> zbus::Result<i32>;
606
607 #[zbus(property, name = "DefaultRestartUSec")]
609 fn default_restart_usec(&self) -> zbus::Result<u64>;
610
611 #[zbus(property)]
613 fn default_standard_error(&self) -> zbus::Result<String>;
614
615 #[zbus(property)]
617 fn default_standard_output(&self) -> zbus::Result<String>;
618
619 #[zbus(property)]
621 fn default_start_limit_burst(&self) -> zbus::Result<u32>;
622
623 #[zbus(property, name = "DefaultStartLimitIntervalUSec")]
625 fn default_start_limit_interval_usec(&self) -> zbus::Result<u64>;
626
627 #[zbus(property)]
629 fn default_tasks_accounting(&self) -> zbus::Result<bool>;
630
631 #[zbus(property)]
633 fn default_tasks_max(&self) -> zbus::Result<u64>;
634
635 #[zbus(property, name = "DefaultTimeoutAbortUSec")]
637 fn default_timeout_abort_usec(&self) -> zbus::Result<u64>;
638
639 #[zbus(property, name = "DefaultTimeoutStartUSec")]
641 fn default_timeout_start_usec(&self) -> zbus::Result<u64>;
642
643 #[zbus(property, name = "DefaultTimeoutStopUSec")]
645 fn default_timeout_stop_usec(&self) -> zbus::Result<u64>;
646
647 #[zbus(property, name = "DefaultTimerAccuracyUSec")]
649 fn default_timer_accuracy_usec(&self) -> zbus::Result<u64>;
650
651 #[zbus(property)]
653 fn environment(&self) -> zbus::Result<Vec<String>>;
654
655 #[zbus(property)]
657 fn exit_code(&self) -> zbus::Result<u8>;
658
659 #[zbus(property)]
661 fn features(&self) -> zbus::Result<String>;
662
663 #[zbus(property)]
665 fn finish_timestamp(&self) -> zbus::Result<u64>;
666
667 #[zbus(property)]
669 fn finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
670
671 #[zbus(property)]
673 fn firmware_timestamp(&self) -> zbus::Result<u64>;
674
675 #[zbus(property)]
677 fn firmware_timestamp_monotonic(&self) -> zbus::Result<u64>;
678
679 #[zbus(property)]
681 fn generators_finish_timestamp(&self) -> zbus::Result<u64>;
682
683 #[zbus(property)]
685 fn generators_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
686
687 #[zbus(property)]
689 fn generators_start_timestamp(&self) -> zbus::Result<u64>;
690
691 #[zbus(property)]
693 fn generators_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
694
695 #[zbus(property, name = "InitRDGeneratorsFinishTimestamp")]
697 fn initrd_generators_finish_timestamp(&self) -> zbus::Result<u64>;
698
699 #[zbus(property, name = "InitRDGeneratorsFinishTimestampMonotonic")]
701 fn initrd_generators_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
702
703 #[zbus(property, name = "InitRDGeneratorsStartTimestamp")]
705 fn initrd_generators_start_timestamp(&self) -> zbus::Result<u64>;
706
707 #[zbus(property, name = "InitRDGeneratorsStartTimestampMonotonic")]
709 fn initrd_generators_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
710
711 #[zbus(property, name = "InitRDSecurityFinishTimestamp")]
713 fn initrd_security_finish_timestamp(&self) -> zbus::Result<u64>;
714
715 #[zbus(property, name = "InitRDSecurityFinishTimestampMonotonic")]
717 fn initrd_security_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
718
719 #[zbus(property, name = "InitRDSecurityStartTimestamp")]
721 fn initrd_security_start_timestamp(&self) -> zbus::Result<u64>;
722
723 #[zbus(property, name = "InitRDSecurityStartTimestampMonotonic")]
725 fn initrd_security_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
726
727 #[zbus(property, name = "InitRDTimestamp")]
729 fn initrd_timestamp(&self) -> zbus::Result<u64>;
730
731 #[zbus(property, name = "InitRDTimestampMonotonic")]
733 fn initrd_timestamp_monotonic(&self) -> zbus::Result<u64>;
734
735 #[zbus(property, name = "InitRDUnitsLoadFinishTimestamp")]
737 fn initrd_units_load_finish_timestamp(&self) -> zbus::Result<u64>;
738
739 #[zbus(property, name = "InitRDUnitsLoadFinishTimestampMonotonic")]
741 fn initrd_units_load_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
742
743 #[zbus(property, name = "InitRDUnitsLoadStartTimestamp")]
745 fn initrd_units_load_start_timestamp(&self) -> zbus::Result<u64>;
746
747 #[zbus(property, name = "InitRDUnitsLoadStartTimestampMonotonic")]
749 fn initrd_units_load_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
750
751 #[zbus(property, name = "KExecWatchdogUSec")]
753 fn kexec_watchdog_usec(&self) -> zbus::Result<u64>;
754 fn set_kexec_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
755
756 #[zbus(property)]
758 fn kernel_timestamp(&self) -> zbus::Result<u64>;
759
760 #[zbus(property)]
762 fn kernel_timestamp_monotonic(&self) -> zbus::Result<u64>;
763
764 #[zbus(property)]
766 fn loader_timestamp(&self) -> zbus::Result<u64>;
767
768 #[zbus(property)]
770 fn loader_timestamp_monotonic(&self) -> zbus::Result<u64>;
771
772 #[zbus(property)]
774 fn log_level(&self) -> zbus::Result<String>;
775 fn set_log_level(&self, value: &str) -> zbus::Result<()>;
776
777 #[zbus(property)]
779 fn log_target(&self) -> zbus::Result<String>;
780 fn set_log_target(&self, value: &str) -> zbus::Result<()>;
781
782 #[zbus(property, name = "NFailedJobs")]
784 fn n_failed_jobs(&self) -> zbus::Result<u32>;
785
786 #[zbus(property, name = "NFailedUnits")]
788 fn n_failed_units(&self) -> zbus::Result<u32>;
789
790 #[zbus(property, name = "NInstalledJobs")]
792 fn n_installed_jobs(&self) -> zbus::Result<u32>;
793
794 #[zbus(property, name = "NJobs")]
796 fn n_jobs(&self) -> zbus::Result<u32>;
797
798 #[zbus(property, name = "NNames")]
800 fn n_names(&self) -> zbus::Result<u32>;
801
802 #[zbus(property)]
804 fn progress(&self) -> zbus::Result<f64>;
805
806 #[zbus(property, name = "RebootWatchdogUSec")]
808 fn reboot_watchdog_usec(&self) -> zbus::Result<u64>;
809 fn set_reboot_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
810
811 #[zbus(property)]
813 fn runtime_watchdog_pre_governor(&self) -> zbus::Result<String>;
814 fn set_runtime_watchdog_pre_governor(&self, value: &str) -> zbus::Result<()>;
815
816 #[zbus(property, name = "RuntimeWatchdogPreUSec")]
818 fn runtime_watchdog_pre_usec(&self) -> zbus::Result<u64>;
819 fn set_runtime_watchdog_pre_usec(&self, value: u64) -> zbus::Result<()>;
820
821 #[zbus(property, name = "RuntimeWatchdogUSec")]
823 fn runtime_watchdog_usec(&self) -> zbus::Result<u64>;
824 fn set_runtime_watchdog_usec(&self, value: u64) -> zbus::Result<()>;
825
826 #[zbus(property)]
828 fn security_finish_timestamp(&self) -> zbus::Result<u64>;
829
830 #[zbus(property)]
832 fn security_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
833
834 #[zbus(property)]
836 fn security_start_timestamp(&self) -> zbus::Result<u64>;
837
838 #[zbus(property)]
840 fn security_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
841
842 #[zbus(property)]
844 fn service_watchdogs(&self) -> zbus::Result<bool>;
845 fn set_service_watchdogs(&self, value: bool) -> zbus::Result<()>;
846
847 #[zbus(property)]
849 fn show_status(&self) -> zbus::Result<bool>;
850
851 #[zbus(property)]
853 fn system_state(&self) -> zbus::Result<String>;
854
855 #[zbus(property)]
857 fn tainted(&self) -> zbus::Result<String>;
858
859 #[zbus(property, name = "TimerSlackNSec")]
861 fn timer_slack_nsec(&self) -> zbus::Result<u64>;
862
863 #[zbus(property)]
865 fn unit_path(&self) -> zbus::Result<Vec<String>>;
866
867 #[zbus(property)]
869 fn units_load_finish_timestamp(&self) -> zbus::Result<u64>;
870
871 #[zbus(property)]
873 fn units_load_finish_timestamp_monotonic(&self) -> zbus::Result<u64>;
874
875 #[zbus(property)]
877 fn units_load_start_timestamp(&self) -> zbus::Result<u64>;
878
879 #[zbus(property)]
881 fn units_load_start_timestamp_monotonic(&self) -> zbus::Result<u64>;
882
883 #[zbus(property)]
885 fn units_load_timestamp(&self) -> zbus::Result<u64>;
886
887 #[zbus(property)]
889 fn units_load_timestamp_monotonic(&self) -> zbus::Result<u64>;
890
891 #[zbus(property)]
893 fn userspace_timestamp(&self) -> zbus::Result<u64>;
894
895 #[zbus(property)]
897 fn userspace_timestamp_monotonic(&self) -> zbus::Result<u64>;
898
899 #[zbus(property)]
901 fn version(&self) -> zbus::Result<String>;
902
903 #[zbus(property)]
905 fn virtualization(&self) -> zbus::Result<String>;
906}