(
&self,
request: pb::SealSandboxImageRequest,
)
| 1964 | } |
| 1965 | |
| 1966 | pub fn seal_sandbox_image( |
| 1967 | &self, |
| 1968 | request: pb::SealSandboxImageRequest, |
| 1969 | ) -> CliResult<pb::SealSandboxImageResponse> { |
| 1970 | self.call(move |backend| async move { |
| 1971 | match backend { |
| 1972 | Backend::Local(state) => services_sandbox::SandboxImpl { state } |
| 1973 | .seal_sandbox_image(Request::new(request)) |
| 1974 | .await |
| 1975 | .map(|response| response.into_inner()), |
| 1976 | Backend::Reactor(channel) => { |
| 1977 | let mut sandbox = |
| 1978 | pb::sandbox_service_client::SandboxServiceClient::new(channel); |
| 1979 | sandbox |
| 1980 | .seal_sandbox_image(request) |
| 1981 | .await |
| 1982 | .map(|response| response.into_inner()) |
| 1983 | } |
| 1984 | } |
| 1985 | }) |
| 1986 | } |
| 1987 | } |
| 1988 | |
| 1989 | // --------------------------------------------------------------------------- |
no test coverage detected