(&self, request: pb::MoveFileRequest)
| 622 | } |
| 623 | |
| 624 | pub fn move_file(&self, request: pb::MoveFileRequest) -> CliResult<pb::MoveFileResponse> { |
| 625 | self.call(move |backend| async move { |
| 626 | match backend { |
| 627 | Backend::Local(state) => { |
| 628 | services::MutationImpl { state } |
| 629 | .move_file(Request::new(request)) |
| 630 | .await |
| 631 | .map(|response| response.into_inner()) |
| 632 | } |
| 633 | Backend::Reactor(channel) => { |
| 634 | let mut mutation = |
| 635 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 636 | mutation.move_file(request).await.map(|response| response.into_inner()) |
| 637 | } |
| 638 | } |
| 639 | }) |
| 640 | } |
| 641 | |
| 642 | pub fn unrecord(&self, request: pb::UnrecordRequest) -> CliResult<pb::UnrecordResponse> { |
| 643 | self.call(move |backend| async move { |
no test coverage detected