(
service: &LocalService,
group: &str,
method: &str,
input: &I,
)
| 134 | // Keep the real transport status for code/details assertions in this byte client. |
| 135 | #[allow(clippy::result_large_err)] |
| 136 | async fn call<I: Message, O: Message + Default>( |
| 137 | service: &LocalService, |
| 138 | group: &str, |
| 139 | method: &str, |
| 140 | input: &I, |
| 141 | ) -> Result<O, Status> { |
| 142 | let bytes = service |
| 143 | .call(&format!("/atomic.{group}/{method}"), &input.encode_to_vec()) |
| 144 | .await?; |
| 145 | O::decode(bytes.as_slice()).map_err(|error| Status::internal(error.to_string())) |
| 146 | } |
| 147 | |
| 148 | async fn prepare( |
| 149 | service: &LocalService, |
no test coverage detected