MOre pre vtable changes
parent: tbd commit: 9cfa135
1 | |
2 | |
3 | use |
4 | , | OperationError
5 | , |
6 | , | ObjectBackend
7 | , |
8 | ; |
9 | use Debug; |
10 | |
11 | pub use *; |
12 | |
13 | pub use *; |
14 | |
15 | pub use *; |
16 | |
17 | use crate:: |
18 | , |
19 | , | RuntimeVTable
20 | AnyObject, AnyOperation, |
21 | ; |
22 | |
23 | /// A container for a callback pointer, used to provide an internal callback function or |
24 | /// state to a plugin when performing a callback. |
25 | |
26 | |
27 | ; | )
28 | |
29 | |
30 | pub unsafe |
31 | Self |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | pub vtable: RuntimeVTable, |
39 | |
40 | |
41 | |
42 | pub unsafe |
43 | let runtime = get_runtime_reference; |
44 | |
45 | let runtime = runtime. .as_ref; |
46 | |
47 | runtime.state |
48 | |
49 | |
50 | pub unsafe |
51 | let runtime = get_runtime_reference; |
52 | |
53 | from_raw_ptr |
54 | |
55 | |
56 | |
57 | |
58 | |
59 | async |
60 | &self, |
61 | object: O, |
62 | _operation: &str, |
63 | payload: D, |
64 | _operation_state: &OperationState, |
65 | |
66 | |
67 | O: GiteratedObject + Debug + 'static, |
68 | D: + Debug + 'static, |
69 | : Clone, | Success
70 | : Clone, | Failure
71 | |
72 | let _object = new; |
73 | let _operation = new; |
74 | |
75 | todo! |
76 | |
77 | |
78 | async |
79 | &self, |
80 | object_str: &str, |
81 | operation_state: &OperationState, |
82 | |
83 | let object = unsafe |
84 | |
85 | Self runtime_state, |
86 | object_str, |
87 | &mut operation_state.clone, |
88 | |
89 | ?; |
90 | |
91 | let object = unsafe ; |
92 | |
93 | panic!; |
94 | |
95 | Ok |
96 | |
97 | |
98 |