-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
sample_object0.rs
97 lines (84 loc) · 2.65 KB
/
sample_object0.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
95
96
97
#[proxy(interface = "com.example.SampleInterface0", assume_defaults = true)]
pub trait SampleInterface0 {
/// BarplexSig method
fn barplex_sig(
&self,
rule: &(
&[i32],
i32,
std::collections::HashMap<&str, &str>,
i32,
&[i32],
i32,
&[&str],
i32,
bool,
),
) -> zbus::Result<Vec<(String, zbus::zvariant::OwnedObjectPath)>>;
/// Bazic method
fn bazic(&self, bar: &(i32, i32), foo: &(i32,)) -> zbus::Result<((i32, i32), Vec<(i32,)>)>;
/// Bazify method
fn bazify(&self, bar: &(i32, i32, u32)) -> zbus::Result<zbus::zvariant::OwnedValue>;
/// Frobate method
fn frobate(
&self,
foz: i32,
foo: i32,
) -> zbus::Result<(String, std::collections::HashMap<u32, String>)>;
/// MogrifyMe method
fn mogrify_me(&self, bar: &(i32, i32, &[&zbus::zvariant::Value<'_>])) -> zbus::Result<()>;
/// Odyssey method
#[allow(clippy::too_many_arguments)]
fn odyssey(
&self,
odysseus: i32,
penelope: &str,
telemachus: u32,
circe: i32,
athena: bool,
polyphemus: i32,
calypso: &zbus::zvariant::Value<'_>,
) -> zbus::Result<()>;
/// Changed signal
#[zbus(signal)]
fn changed(&self, new_value: bool) -> zbus::Result<()>;
/// Changed2 signal
#[zbus(signal)]
fn changed2(&self, new_value: bool, new_value2: bool) -> zbus::Result<()>;
/// SignalArrayOfStrings signal
#[zbus(signal)]
fn signal_array_of_strings(&self, array: Vec<&str>) -> zbus::Result<()>;
/// SignalDictStringToValue signal
#[zbus(signal)]
fn signal_dict_string_to_value(
&self,
dict: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
/// SignalValue signal
#[zbus(signal)]
fn signal_value(&self, value: zbus::zvariant::Value<'_>) -> zbus::Result<()>;
/// Bar property
#[zbus(property)]
fn bar(&self) -> zbus::Result<u8>;
#[zbus(property)]
fn set_bar(&self, value: u8) -> zbus::Result<()>;
/// Foo-Bar property
#[zbus(property, name = "Foo-Bar")]
fn foo_bar(&self) -> zbus::Result<u8>;
#[zbus(property, name = "Foo-Bar")]
fn set_foo_bar(&self, value: u8) -> zbus::Result<()>;
/// Matryoshkas property
#[zbus(property)]
#[allow(clippy::type_complexity)]
fn matryoshkas(
&self,
) -> zbus::Result<
Vec<(
zbus::zvariant::OwnedObjectPath,
i32,
Vec<String>,
u64,
std::collections::HashMap<String, zbus::zvariant::OwnedValue>,
)>,
>;
}