(&self, request: pb::RestoreRequest)
| 658 | } |
| 659 | |
| 660 | pub fn restore(&self, request: pb::RestoreRequest) -> CliResult<pb::RestoreResponse> { |
| 661 | self.call(move |backend| async move { |
| 662 | match backend { |
| 663 | Backend::Local(state) => { |
| 664 | services::MutationImpl { state } |
| 665 | .restore(Request::new(request)) |
| 666 | .await |
| 667 | .map(|response| response.into_inner()) |
| 668 | } |
| 669 | Backend::Reactor(channel) => { |
| 670 | let mut mutation = |
| 671 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 672 | mutation.restore(request).await.map(|response| response.into_inner()) |
| 673 | } |
| 674 | } |
| 675 | }) |
| 676 | } |
| 677 | |
| 678 | pub fn create_stash( |
| 679 | &self, |
nothing calls this directly
no test coverage detected