(
&self,
request: pb::RenewSandboxRequest,
)
| 1876 | } |
| 1877 | |
| 1878 | pub fn renew_sandbox( |
| 1879 | &self, |
| 1880 | request: pb::RenewSandboxRequest, |
| 1881 | ) -> CliResult<pb::RenewSandboxResponse> { |
| 1882 | self.call(move |backend| async move { |
| 1883 | match backend { |
| 1884 | Backend::Local(state) => services_sandbox::SandboxImpl { state } |
| 1885 | .renew_sandbox(Request::new(request)) |
| 1886 | .await |
| 1887 | .map(|response| response.into_inner()), |
| 1888 | Backend::Reactor(channel) => { |
| 1889 | let mut sandbox = |
| 1890 | pb::sandbox_service_client::SandboxServiceClient::new(channel); |
| 1891 | sandbox |
| 1892 | .renew_sandbox(request) |
| 1893 | .await |
| 1894 | .map(|response| response.into_inner()) |
| 1895 | } |
| 1896 | } |
| 1897 | }) |
| 1898 | } |
| 1899 | |
| 1900 | pub fn close_sandbox( |
| 1901 | &self, |
no test coverage detected