(
&self,
_sandbox: &Sandbox,
_state_dir: &Path,
plan: &mut LaunchPlan,
)
| 6847 | } |
| 6848 | |
| 6849 | async fn before_launch( |
| 6850 | &self, |
| 6851 | _sandbox: &Sandbox, |
| 6852 | _state_dir: &Path, |
| 6853 | plan: &mut LaunchPlan, |
| 6854 | ) -> LifecycleResult<()> { |
| 6855 | if plan.backend != VmBackend::Qemu { |
| 6856 | return Err(LifecycleError::new( |
| 6857 | "qemu-requiring extension demands QEMU backend", |
| 6858 | )); |
| 6859 | } |
| 6860 | plan.env.push("EXT_DECLARED_QEMU=1".to_string()); |
| 6861 | Ok(()) |
| 6862 | } |
| 6863 | } |
| 6864 | |
| 6865 | #[derive(Debug)] |
no test coverage detected