systemd_zbus/generated/path.rs
1//! # DBus interface proxies for: `org.freedesktop.systemd1.Path`
2//!
3//! This code was generated by `zbus-xmlgen` `3.1.0` from DBus introspection data.
4//! Source: `org.freedesktop.systemd1.Path.xml`.
5//!
6//! You may prefer to adapt it, instead of using it verbatim.
7//!
8//! More information can be found in the
9//! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html)
10//! section of the zbus documentation.
11//!
12//! This DBus object implements
13//! [standard DBus interfaces](https://dbus.freedesktop.org/doc/dbus-specification.html),
14//! (`org.freedesktop.DBus.*`) for which the following zbus proxies can be used:
15//!
16//! * [`zbus::fdo::PeerProxy`]
17//! * [`zbus::fdo::IntrospectableProxy`]
18//! * [`zbus::fdo::PropertiesProxy`]
19//!
20//! …consequently `zbus-xmlgen` did not generate code for the above interfaces.
21
22use zbus::proxy;
23
24use crate::PathWatch;
25
26#[proxy(
27 interface = "org.freedesktop.systemd1.Path",
28 default_service = "org.freedesktop.systemd1"
29)]
30pub trait Path {
31 /// DirectoryMode property
32 #[zbus(property)]
33 fn directory_mode(&self) -> zbus::Result<u32>;
34
35 /// MakeDirectory property
36 #[zbus(property)]
37 fn make_directory(&self) -> zbus::Result<bool>;
38
39 /// Paths property
40 #[zbus(property)]
41 fn paths(&self) -> zbus::Result<Vec<PathWatch>>;
42
43 /// Result property
44 #[zbus(property)]
45 fn result(&self) -> zbus::Result<String>;
46
47 /// TriggerLimitBurst property
48 #[zbus(property)]
49 fn trigger_limit_burst(&self) -> zbus::Result<u32>;
50
51 /// TriggerLimitIntervalUSec property
52 #[zbus(property, name = "TriggerLimitIntervalUSec")]
53 fn trigger_limit_interval_usec(&self) -> zbus::Result<u64>;
54
55 /// Unit property
56 #[zbus(property)]
57 fn unit(&self) -> zbus::Result<String>;
58}