monitord/dbus/
zbus_timer.rs

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
//! # D-Bus interface proxy for: `org.freedesktop.systemd1.Timer`
//!
//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
//! Source: `Interface '/org/freedesktop/systemd1/unit/apt_2ddaily_2dupgrade_2etimer' from service 'org.freedesktop.systemd1' on system bus`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! 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:
//!
//! * [`zbus::fdo::PeerProxy`]
//! * [`zbus::fdo::IntrospectableProxy`]
//! * [`zbus::fdo::PropertiesProxy`]
//!
//! Consequently `zbus-xmlgen` did not generate code for the above interfaces.
//!
//! [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,
#![allow(warnings)]
#![allow(clippy)]
use zbus::proxy;
#[proxy(
    interface = "org.freedesktop.systemd1.Timer",
    default_service = "org.freedesktop.systemd1",
    default_path = "/org/freedesktop/systemd1/unit/apt_2ddaily_2dupgrade_2etimer"
)]
pub trait Timer {
    /// AccuracyUSec property
    #[zbus(property, name = "AccuracyUSec")]
    fn accuracy_usec(&self) -> zbus::Result<u64>;

    /// FixedRandomDelay property
    #[zbus(property)]
    fn fixed_random_delay(&self) -> zbus::Result<bool>;

    /// LastTriggerUSec property
    #[zbus(property, name = "LastTriggerUSec")]
    fn last_trigger_usec(&self) -> zbus::Result<u64>;

    /// LastTriggerUSecMonotonic property
    #[zbus(property, name = "LastTriggerUSecMonotonic")]
    fn last_trigger_usec_monotonic(&self) -> zbus::Result<u64>;

    /// NextElapseUSecMonotonic property
    #[zbus(property, name = "NextElapseUSecMonotonic")]
    fn next_elapse_usec_monotonic(&self) -> zbus::Result<u64>;

    /// NextElapseUSecRealtime property
    #[zbus(property, name = "NextElapseUSecRealtime")]
    fn next_elapse_usec_realtime(&self) -> zbus::Result<u64>;

    /// OnClockChange property
    #[zbus(property)]
    fn on_clock_change(&self) -> zbus::Result<bool>;

    /// OnTimezoneChange property
    #[zbus(property)]
    fn on_timezone_change(&self) -> zbus::Result<bool>;

    /// Persistent property
    #[zbus(property)]
    fn persistent(&self) -> zbus::Result<bool>;

    /// RandomizedDelayUSec property
    #[zbus(property, name = "RandomizedDelayUSec")]
    fn randomized_delay_usec(&self) -> zbus::Result<u64>;

    /// RemainAfterElapse property
    #[zbus(property)]
    fn remain_after_elapse(&self) -> zbus::Result<bool>;

    /// Result property
    #[zbus(property)]
    fn result(&self) -> zbus::Result<String>;

    /// TimersCalendar property
    #[zbus(property)]
    fn timers_calendar(&self) -> zbus::Result<Vec<(String, String, u64)>>;

    /// TimersMonotonic property
    #[zbus(property)]
    fn timers_monotonic(&self) -> zbus::Result<Vec<(String, u64, u64)>>;

    /// Unit property
    #[zbus(property)]
    fn unit(&self) -> zbus::Result<String>;

    /// WakeSystem property
    #[zbus(property)]
    fn wake_system(&self) -> zbus::Result<bool>;
}