(
self,
method: String,
payload: Vec<u8>,
is_json: bool,
is_query: bool,
)
| 65 | fn construct(context: CallContext<'_, State>) -> Result<Self>; |
| 66 | |
| 67 | async fn call( |
| 68 | self, |
| 69 | method: String, |
| 70 | payload: Vec<u8>, |
| 71 | is_json: bool, |
| 72 | is_query: bool, |
| 73 | ) -> (u16, Vec<u8>) { |
| 74 | dispatch_prpc( |
| 75 | method, |
| 76 | payload, |
| 77 | is_json, |
| 78 | is_query, |
| 79 | <Self::PrpcService as From<Self>>::from(self), |
| 80 | ) |
| 81 | .await |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | async fn dispatch_prpc( |