(
&self,
request: pb::OpenSandboxRequest,
)
| 1854 | |
| 1855 | impl Service { |
| 1856 | pub fn open_sandbox( |
| 1857 | &self, |
| 1858 | request: pb::OpenSandboxRequest, |
| 1859 | ) -> CliResult<pb::OpenSandboxResponse> { |
| 1860 | self.call(move |backend| async move { |
| 1861 | match backend { |
| 1862 | Backend::Local(state) => services_sandbox::SandboxImpl { state } |
| 1863 | .open_sandbox(Request::new(request)) |
| 1864 | .await |
| 1865 | .map(|response| response.into_inner()), |
| 1866 | Backend::Reactor(channel) => { |
| 1867 | let mut sandbox = |
| 1868 | pb::sandbox_service_client::SandboxServiceClient::new(channel); |
| 1869 | sandbox |
| 1870 | .open_sandbox(request) |
| 1871 | .await |
| 1872 | .map(|response| response.into_inner()) |
| 1873 | } |
| 1874 | } |
| 1875 | }) |
| 1876 | } |
| 1877 | |
| 1878 | pub fn renew_sandbox( |
| 1879 | &self, |
no test coverage detected