(
&self,
request: pb::ListStashesRequest,
)
| 715 | } |
| 716 | |
| 717 | pub fn list_stashes( |
| 718 | &self, |
| 719 | request: pb::ListStashesRequest, |
| 720 | ) -> CliResult<pb::ListStashesResponse> { |
| 721 | self.call(move |backend| async move { |
| 722 | match backend { |
| 723 | Backend::Local(state) => { |
| 724 | services::MutationImpl { state } |
| 725 | .list_stashes(Request::new(request)) |
| 726 | .await |
| 727 | .map(|response| response.into_inner()) |
| 728 | } |
| 729 | Backend::Reactor(channel) => { |
| 730 | let mut mutation = |
| 731 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 732 | mutation.list_stashes(request).await.map(|response| response.into_inner()) |
| 733 | } |
| 734 | } |
| 735 | }) |
| 736 | } |
| 737 | |
| 738 | pub fn drop_stash(&self, request: pb::DropStashRequest) -> CliResult<pb::DropStashResponse> { |
| 739 | self.call(move |backend| async move { |
nothing calls this directly
no test coverage detected