(&self, request: pb::ApplyStashRequest)
| 697 | } |
| 698 | |
| 699 | pub fn apply_stash(&self, request: pb::ApplyStashRequest) -> CliResult<pb::ApplyStashResponse> { |
| 700 | self.call(move |backend| async move { |
| 701 | match backend { |
| 702 | Backend::Local(state) => { |
| 703 | services::MutationImpl { state } |
| 704 | .apply_stash(Request::new(request)) |
| 705 | .await |
| 706 | .map(|response| response.into_inner()) |
| 707 | } |
| 708 | Backend::Reactor(channel) => { |
| 709 | let mut mutation = |
| 710 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 711 | mutation.apply_stash(request).await.map(|response| response.into_inner()) |
| 712 | } |
| 713 | } |
| 714 | }) |
| 715 | } |
| 716 | |
| 717 | pub fn list_stashes( |
| 718 | &self, |
nothing calls this directly
no test coverage detected