monitord/dbus/
zbus_timer.rs

1//! # D-Bus interface proxy for: `org.freedesktop.systemd1.Timer`
2//!
3//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
4//! Source: `Interface '/org/freedesktop/systemd1/unit/apt_2ddaily_2dupgrade_2etimer' 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,
22#![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    /// AccuracyUSec property
32    #[zbus(property, name = "AccuracyUSec")]
33    fn accuracy_usec(&self) -> zbus::Result<u64>;
34
35    /// FixedRandomDelay property
36    #[zbus(property)]
37    fn fixed_random_delay(&self) -> zbus::Result<bool>;
38
39    /// LastTriggerUSec property
40    #[zbus(property, name = "LastTriggerUSec")]
41    fn last_trigger_usec(&self) -> zbus::Result<u64>;
42
43    /// LastTriggerUSecMonotonic property
44    #[zbus(property, name = "LastTriggerUSecMonotonic")]
45    fn last_trigger_usec_monotonic(&self) -> zbus::Result<u64>;
46
47    /// NextElapseUSecMonotonic property
48    #[zbus(property, name = "NextElapseUSecMonotonic")]
49    fn next_elapse_usec_monotonic(&self) -> zbus::Result<u64>;
50
51    /// NextElapseUSecRealtime property
52    #[zbus(property, name = "NextElapseUSecRealtime")]
53    fn next_elapse_usec_realtime(&self) -> zbus::Result<u64>;
54
55    /// OnClockChange property
56    #[zbus(property)]
57    fn on_clock_change(&self) -> zbus::Result<bool>;
58
59    /// OnTimezoneChange property
60    #[zbus(property)]
61    fn on_timezone_change(&self) -> zbus::Result<bool>;
62
63    /// Persistent property
64    #[zbus(property)]
65    fn persistent(&self) -> zbus::Result<bool>;
66
67    /// RandomizedDelayUSec property
68    #[zbus(property, name = "RandomizedDelayUSec")]
69    fn randomized_delay_usec(&self) -> zbus::Result<u64>;
70
71    /// RemainAfterElapse property
72    #[zbus(property)]
73    fn remain_after_elapse(&self) -> zbus::Result<bool>;
74
75    /// Result property
76    #[zbus(property)]
77    fn result(&self) -> zbus::Result<String>;
78
79    /// TimersCalendar property
80    #[zbus(property)]
81    fn timers_calendar(&self) -> zbus::Result<Vec<(String, String, u64)>>;
82
83    /// TimersMonotonic property
84    #[zbus(property)]
85    fn timers_monotonic(&self) -> zbus::Result<Vec<(String, u64, u64)>>;
86
87    /// Unit property
88    #[zbus(property)]
89    fn unit(&self) -> zbus::Result<String>;
90
91    /// WakeSystem property
92    #[zbus(property)]
93    fn wake_system(&self) -> zbus::Result<bool>;
94}