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