(
&self,
request: pb::CloseSandboxRequest,
)
| 1898 | } |
| 1899 | |
| 1900 | pub fn close_sandbox( |
| 1901 | &self, |
| 1902 | request: pb::CloseSandboxRequest, |
| 1903 | ) -> CliResult<pb::CloseSandboxResponse> { |
| 1904 | self.call(move |backend| async move { |
| 1905 | match backend { |
| 1906 | Backend::Local(state) => services_sandbox::SandboxImpl { state } |
| 1907 | .close_sandbox(Request::new(request)) |
| 1908 | .await |
| 1909 | .map(|response| response.into_inner()), |
| 1910 | Backend::Reactor(channel) => { |
| 1911 | let mut sandbox = |
| 1912 | pb::sandbox_service_client::SandboxServiceClient::new(channel); |
| 1913 | sandbox |
| 1914 | .close_sandbox(request) |
| 1915 | .await |
| 1916 | .map(|response| response.into_inner()) |
| 1917 | } |
| 1918 | } |
| 1919 | }) |
| 1920 | } |
| 1921 | |
| 1922 | pub fn create_sandbox_tree( |
| 1923 | &self, |
no test coverage detected