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