(&self, sandbox: &Sandbox, state_dir: &Path)
| 622 | } |
| 623 | |
| 624 | pub async fn after_delete(&self, sandbox: &Sandbox, state_dir: &Path) { |
| 625 | for ext in self.active_for(sandbox).into_iter().rev() { |
| 626 | if let Err(err) = ext.after_delete(sandbox, state_dir).await { |
| 627 | tracing::warn!( |
| 628 | extension = ext.name(), |
| 629 | sandbox_id = %sandbox.id, |
| 630 | error = %err, |
| 631 | "vm driver: lifecycle extension after_delete hook failed" |
| 632 | ); |
| 633 | } |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | pub async fn before_restore(&self, sandbox: &RestoreContext) -> LifecycleResult<()> { |
| 638 | for ext in self.active_for(&sandbox.sandbox) { |
no test coverage detected