no clue what this is
parent: tbd commit: 7889bf6
1 | use |
2 | , |
3 | , | PhantomData
4 | str FromStr, |
5 | ; |
6 | |
7 | use Error; |
8 | |
9 | use crate:: |
10 | , |
11 | , | ObjectBackend
12 | , |
13 | , |
14 | , |
15 | ; |
16 | |
17 | |
18 | pub use *; |
19 | |
20 | |
21 | |
22 | pub(crate) inner: O, |
23 | pub(crate) backend: B, |
24 | _marker: , |
25 | |
26 | |
27 | |
28 | |
29 | &self.inner |
30 | |
31 | |
32 | pub unsafe |
33 | Object |
34 | inner: object, |
35 | backend, |
36 | _marker: PhantomData, |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | for Object |
43 | |
44 | |
45 | self.inner.fmt |
46 | |
47 | |
48 | |
49 | |
50 | ; |
51 | ; |
52 | |
53 | ; |
54 | |
55 | |
56 | |
57 | pub async |
58 | &mut self, |
59 | operation_state: &mut OS, |
60 | |
61 | let result = self |
62 | .request |
63 | GetValue |
64 | value_name: value_name .to_string, |
65 | , |
66 | operation_state, |
67 | |
68 | .await?; |
69 | |
70 | Ok |
71 | |
72 | |
73 | pub async |
74 | &mut self, |
75 | operation_state: &mut OS, |
76 | |
77 | self.request |
78 | GetSetting |
79 | setting_name: name .to_string, |
80 | , |
81 | operation_state, |
82 | |
83 | .await |
84 | .map |
85 | |
86 | |
87 | pub async |
88 | &mut self, |
89 | setting: S, |
90 | operation_state: &mut OS, |
91 | |
92 | self.request |
93 | SetSetting |
94 | setting_name: name .to_string, |
95 | value: to_value .unwrap, |
96 | , |
97 | operation_state, |
98 | |
99 | .await |
100 | |
101 | |
102 | pub async |
103 | &mut self, |
104 | request: R, |
105 | operation_state: &mut OS, |
106 | |
107 | |
108 | : Clone, | Success
109 | : Clone, | Failure
110 | |
111 | self.backend |
112 | .object_operation |
113 | self.inner.clone, |
114 | , | operation_name
115 | request, |
116 | operation_state, |
117 | |
118 | .await |
119 | |
120 | |
121 | |
122 | |
123 | |
124 | pub object_kind: &'s str, |
125 | pub operation_name: &'s str, |
126 | |
127 | |
128 | |
129 | |
130 | Self |
131 | object_kind, |
132 | operation_name, |
133 | |
134 | |
135 | |
136 |