(
&self,
request: pb::CreateSandboxTreeRequest,
)
| 1920 | } |
| 1921 | |
| 1922 | pub fn create_sandbox_tree( |
| 1923 | &self, |
| 1924 | request: pb::CreateSandboxTreeRequest, |
| 1925 | ) -> CliResult<pb::CreateSandboxTreeResponse> { |
| 1926 | self.call(move |backend| async move { |
| 1927 | match backend { |
| 1928 | Backend::Local(state) => services_sandbox::SandboxImpl { state } |
| 1929 | .create_sandbox_tree(Request::new(request)) |
| 1930 | .await |
| 1931 | .map(|response| response.into_inner()), |
| 1932 | Backend::Reactor(channel) => { |
| 1933 | let mut sandbox = |
| 1934 | pb::sandbox_service_client::SandboxServiceClient::new(channel); |
| 1935 | sandbox |
| 1936 | .create_sandbox_tree(request) |
| 1937 | .await |
| 1938 | .map(|response| response.into_inner()) |
| 1939 | } |
| 1940 | } |
| 1941 | }) |
| 1942 | } |
| 1943 | |
| 1944 | pub fn stage_sandbox_image( |
| 1945 | &self, |
no test coverage detected