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