no clue what this is
parent: tbd commit: 7889bf6
1 | use |
2 | , |
3 | , |
4 | ; |
5 | use |
6 | , | OperationError
7 | , |
8 | , | ObjectBackend
9 | , |
10 | ; |
11 | use Debug; |
12 | use TypeMetadata; |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | pub vtable: &'static , |
20 | |
21 | |
22 | |
23 | |
24 | async |
25 | &self, |
26 | object: O, |
27 | operation: &str, |
28 | payload: D, |
29 | operation_state: &mut State, |
30 | |
31 | |
32 | O: GiteratedObject + Debug + 'static, |
33 | D: + Debug + 'static, |
34 | : Clone, | Success
35 | : Clone, | Failure
36 | |
37 | todo! |
38 | |
39 | |
40 | async |
41 | &self, |
42 | object_str: &str, |
43 | operation_state: &mut State, |
44 | |
45 | todo! |
46 | |
47 | |
48 | |
49 | // impl RuntimeState { |
50 | // pub unsafe fn from_static() -> Self { |
51 | // let runtime = giterated_static_runtime::get_runtime_reference(); |
52 | |
53 | // let runtime = runtime.cast::<Box<Runtime>>().as_ref(); |
54 | |
55 | // runtime.state() |
56 | // } |
57 | |
58 | // pub unsafe fn runtime_state() -> PluginState { |
59 | // let runtime = giterated_static_runtime::get_runtime_reference(); |
60 | |
61 | // PluginState::from_raw_ptr(giterated_static_runtime::get_runtime_reference().as_ptr()) |
62 | // } |
63 | // } |
64 | |
65 | // #[async_trait::async_trait(?Send)] |
66 | // impl ObjectBackend for RuntimeState { |
67 | // async fn object_operation<O, D>( |
68 | // &self, |
69 | // object: O, |
70 | // _operation: &str, |
71 | // payload: D, |
72 | // _operation_state: &OperationState, |
73 | // ) -> Result<D::Success, OperationError<D::Failure>> |
74 | // where |
75 | // O: GiteratedObject + Debug + 'static, |
76 | // D: GiteratedOperation<O> + Debug + 'static, |
77 | // D::Success: Clone, |
78 | // D::Failure: Clone, |
79 | // { |
80 | // // let _object = AnyObject::new(object); |
81 | // // let _operation = AnyOperation::new(payload); |
82 | |
83 | // todo!() |
84 | // } |
85 | |
86 | // async fn get_object<O: GiteratedObject + Debug + 'static>( |
87 | // &self, |
88 | // object_str: &str, |
89 | // operation_state: &OperationState, |
90 | // ) -> Result<Object<O, Self>, OperationError<ObjectRequestError>> { |
91 | // // let object = unsafe { |
92 | // // (self.vtable.get_object)( |
93 | // // Self::runtime_state(), |
94 | // // object_str, |
95 | // // &mut operation_state.clone(), |
96 | // // ) |
97 | // // }?; |
98 | |
99 | // // let object = unsafe { object.cast::<O>() }; |
100 | |
101 | // panic!("object casted"); |
102 | |
103 | // // Ok(unsafe { Object::new_unchecked(object, self.clone()) }) |
104 | |
105 | // todo!() |
106 | // } |
107 | // } |
108 | |
109 | ; |
110 | |
111 | |
112 | |
113 | DomainMetadata |
114 | |
115 | |
116 | |
117 | |
118 | |
119 | 1 |
120 | |
121 | |
122 |