monitord/dbus/
zbus_timer.rs1#![allow(warnings)]
23#![allow(clippy)]
24use zbus::proxy;
25#[proxy(
26 interface = "org.freedesktop.systemd1.Timer",
27 default_service = "org.freedesktop.systemd1",
28 default_path = "/org/freedesktop/systemd1/unit/apt_2ddaily_2dupgrade_2etimer"
29)]
30pub trait Timer {
31 #[zbus(property, name = "AccuracyUSec")]
33 fn accuracy_usec(&self) -> zbus::Result<u64>;
34
35 #[zbus(property)]
37 fn fixed_random_delay(&self) -> zbus::Result<bool>;
38
39 #[zbus(property, name = "LastTriggerUSec")]
41 fn last_trigger_usec(&self) -> zbus::Result<u64>;
42
43 #[zbus(property, name = "LastTriggerUSecMonotonic")]
45 fn last_trigger_usec_monotonic(&self) -> zbus::Result<u64>;
46
47 #[zbus(property, name = "NextElapseUSecMonotonic")]
49 fn next_elapse_usec_monotonic(&self) -> zbus::Result<u64>;
50
51 #[zbus(property, name = "NextElapseUSecRealtime")]
53 fn next_elapse_usec_realtime(&self) -> zbus::Result<u64>;
54
55 #[zbus(property)]
57 fn on_clock_change(&self) -> zbus::Result<bool>;
58
59 #[zbus(property)]
61 fn on_timezone_change(&self) -> zbus::Result<bool>;
62
63 #[zbus(property)]
65 fn persistent(&self) -> zbus::Result<bool>;
66
67 #[zbus(property, name = "RandomizedDelayUSec")]
69 fn randomized_delay_usec(&self) -> zbus::Result<u64>;
70
71 #[zbus(property)]
73 fn remain_after_elapse(&self) -> zbus::Result<bool>;
74
75 #[zbus(property)]
77 fn result(&self) -> zbus::Result<String>;
78
79 #[zbus(property)]
81 fn timers_calendar(&self) -> zbus::Result<Vec<(String, String, u64)>>;
82
83 #[zbus(property)]
85 fn timers_monotonic(&self) -> zbus::Result<Vec<(String, u64, u64)>>;
86
87 #[zbus(property)]
89 fn unit(&self) -> zbus::Result<String>;
90
91 #[zbus(property)]
93 fn wake_system(&self) -> zbus::Result<bool>;
94}