(
&self,
request: Request<CreateSandboxRequest>,
)
| 91 | } |
| 92 | |
| 93 | async fn create_sandbox( |
| 94 | &self, |
| 95 | request: Request<CreateSandboxRequest>, |
| 96 | ) -> Result<Response<CreateSandboxResponse>, Status> { |
| 97 | let sandbox = request |
| 98 | .into_inner() |
| 99 | .sandbox |
| 100 | .ok_or_else(|| Status::invalid_argument("sandbox is required"))?; |
| 101 | self.driver |
| 102 | .create_sandbox(&sandbox) |
| 103 | .await |
| 104 | .map_err(Status::from)?; |
| 105 | Ok(Response::new(CreateSandboxResponse {})) |
| 106 | } |
| 107 | |
| 108 | async fn stop_sandbox( |
| 109 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected