(&self, sandbox: &RestoreContext)
| 642 | } |
| 643 | |
| 644 | pub async fn after_restore(&self, sandbox: &RestoreContext) { |
| 645 | for ext in self.active_for(&sandbox.sandbox) { |
| 646 | if let Err(err) = ext.after_restore(sandbox).await { |
| 647 | tracing::warn!( |
| 648 | extension = ext.name(), |
| 649 | sandbox_id = %sandbox.sandbox.id, |
| 650 | error = %err, |
| 651 | "vm driver: lifecycle extension after_restore hook failed" |
| 652 | ); |
| 653 | } |
| 654 | } |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | /// Returns true when `sandbox` opted into the extension identified by |
no test coverage detected