(
&self,
request: pb::ListRemotesRequest,
)
| 1768 | |
| 1769 | impl Service { |
| 1770 | pub fn list_remotes( |
| 1771 | &self, |
| 1772 | request: pb::ListRemotesRequest, |
| 1773 | ) -> CliResult<pb::ListRemotesResponse> { |
| 1774 | self.call(move |backend| async move { |
| 1775 | match backend { |
| 1776 | Backend::Local(state) => services_sync::SyncImpl { state } |
| 1777 | .list_remotes(Request::new(request)) |
| 1778 | .await |
| 1779 | .map(|response| response.into_inner()), |
| 1780 | Backend::Reactor(channel) => { |
| 1781 | let mut sync = pb::sync_service_client::SyncServiceClient::new(channel); |
| 1782 | sync.list_remotes(request) |
| 1783 | .await |
| 1784 | .map(|response| response.into_inner()) |
| 1785 | } |
| 1786 | } |
| 1787 | }) |
| 1788 | } |
| 1789 | |
| 1790 | pub fn manage_remotes( |
| 1791 | &self, |
nothing calls this directly
no test coverage detected