(template: &SandboxTemplate)
| 106 | } |
| 107 | |
| 108 | fn from_template(template: &SandboxTemplate) -> Result<Self, String> { |
| 109 | let Some(config) = template.driver_config.as_ref() else { |
| 110 | return Ok(Self::default()); |
| 111 | }; |
| 112 | |
| 113 | serde_json::from_value(struct_to_json_value(config)) |
| 114 | .map_err(|err| format!("invalid vm driver_config: {err}")) |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /// gvproxy host-loopback IP — gvproxy's TCP/UDP/ICMP forwarder NAT-rewrites |
nothing calls this directly
no test coverage detected