Git repository hosting, collaboration, and discovery for the Fediverse.
Fixes schmixes
parent: tbd commit: 92ff417
1 | use Debug; |
2 | |
3 | use ; |
4 | use |
5 | , | Authenticated
6 | , | OperationError
7 | , | GiteratedMessage
8 | , |
9 | , | ObjectBackend
10 | , | GiteratedOperation
11 | ; |
12 | use DeserializeOwned; |
13 | use Message; |
14 | |
15 | use crate::; |
16 | |
17 | |
18 | |
19 | async |
20 | &self, |
21 | object: O, |
22 | operation: D, |
23 | |
24 | let message = GiteratedMessage |
25 | object, |
26 | operation: operation_name .to_string, |
27 | payload: operation, |
28 | ; |
29 | |
30 | let mut connection = self |
31 | .0 |
32 | .get |
33 | .await |
34 | .map_err?; |
35 | |
36 | let authenticated = new; |
37 | |
38 | send_expect .await |
39 | |
40 | |
41 | async |
42 | &self, |
43 | object_str: &str, |
44 | |
45 | let operation = ObjectRequest; |
46 | info!; |
47 | let message = GiteratedMessage |
48 | object: self.0.manager .target_instance.clone, |
49 | operation: operation_name .to_string, |
50 | payload: operation, |
51 | ; |
52 | |
53 | let mut connection = self |
54 | .0 |
55 | .get |
56 | .await |
57 | .map_err?; |
58 | |
59 | let authenticated = new; |
60 | |
61 | let object_raw: ObjectResponse = send_expect .await?; |
62 | Ok |
63 | new_unchecked |
64 | from_str |
65 | .map_err?, |
66 | self.clone, |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | async |
73 | O: GiteratedObject, |
74 | D: , |
75 | B: DeserializeOwned, |
76 | R: DeserializeOwned, |
77 | > |
78 | socket: &mut Socket, |
79 | message: , |
80 | |
81 | let payload = serialize .unwrap; |
82 | |
83 | socket |
84 | .send |
85 | .await |
86 | .map_err?; |
87 | |
88 | while let Some = socket.next .await |
89 | let payload = match message.map_err? |
90 | => payload, | Binary
91 | _ => |
92 | continue; |
93 | |
94 | ; |
95 | |
96 | let _as_target = |
97 | .map_err?; |
98 | |
99 | |
100 | panic! |
101 | |
102 |