(
&self,
request: pb::CreateStashRequest,
)
| 678 | } |
| 679 | |
| 680 | pub fn create_stash( |
| 681 | &self, |
| 682 | request: pb::CreateStashRequest, |
| 683 | ) -> CliResult<pb::CreateStashResponse> { |
| 684 | self.call(move |backend| async move { |
| 685 | match backend { |
| 686 | Backend::Local(state) => { |
| 687 | services::MutationImpl { state } |
| 688 | .create_stash(Request::new(request)) |
| 689 | .await |
| 690 | .map(|response| response.into_inner()) |
| 691 | } |
| 692 | Backend::Reactor(channel) => { |
| 693 | let mut mutation = |
| 694 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 695 | mutation.create_stash(request).await.map(|response| response.into_inner()) |
| 696 | } |
| 697 | } |
| 698 | }) |
| 699 | } |
| 700 | |
| 701 | pub fn apply_stash(&self, request: pb::ApplyStashRequest) -> CliResult<pb::ApplyStashResponse> { |
| 702 | self.call(move |backend| async move { |
no test coverage detected