(
&self,
request: pb::GetWorkflowSnapshotRequest,
)
| 1259 | } |
| 1260 | |
| 1261 | pub fn get_workflow_snapshot( |
| 1262 | &self, |
| 1263 | request: pb::GetWorkflowSnapshotRequest, |
| 1264 | ) -> CliResult<pb::GetWorkflowSnapshotResponse> { |
| 1265 | self.call(move |backend| async move { |
| 1266 | match backend { |
| 1267 | Backend::Local(state) => services_agent::KnowledgeImpl { state } |
| 1268 | .get_workflow_snapshot(Request::new(request)) |
| 1269 | .await |
| 1270 | .map(|response| response.into_inner()), |
| 1271 | Backend::Reactor(channel) => { |
| 1272 | pb::knowledge_service_client::KnowledgeServiceClient::new(channel) |
| 1273 | .get_workflow_snapshot(request) |
| 1274 | .await |
| 1275 | .map(|response| response.into_inner()) |
| 1276 | } |
| 1277 | } |
| 1278 | }) |
| 1279 | } |
| 1280 | |
| 1281 | pub fn query_graph(&self, request: pb::QueryGraphRequest) -> CliResult<pb::QueryGraphResponse> { |
| 1282 | let response = self.call(move |backend| async move { |
no test coverage detected