Finish unified stack refactor.
Adds support for operation state, which will be used to pass authentication information around. Added generic backend that uses a channel to communicate with a typed backend.
parent: tbd commit: d15581c
1 | use ; |
2 | |
3 | use crate:: |
4 | , |
5 | , | Instance
6 | , | Object
7 | , | ObjectBackend
8 | , | GiteratedOperation
9 | , | RepositorySummary
10 | ; |
11 | |
12 | use User; |
13 | |
14 | |
15 | |
16 | pub instance: Instance, |
17 | pub user: User, |
18 | |
19 | |
20 | |
21 | type Success = ; |
22 | type Failure = UserError; |
23 | |
24 | |
25 | |
26 | pub async |
27 | &mut self, |
28 | instance: &Instance, |
29 | operation_state: &S, |
30 | |
31 | self. |
32 | UserRepositoriesRequest |
33 | instance: instance.clone, |
34 | user: self.inner.clone, |
35 | , |
36 | operation_state, |
37 | |
38 | .await |
39 | |
40 | |
41 |