MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / active_for

Method active_for

crates/openshell-driver-vm/src/lifecycle.rs:543–551  ·  view source on GitHub ↗

Extensions active for `sandbox`, preserving registration order. [`ExtensionActivation::Global`] extensions are always included; [`ExtensionActivation::OnRequest`] extensions are included only when the sandbox carries the matching request label.

(&'a self, sandbox: &Sandbox)

Source from the content-addressed store, hash-verified

541 /// [`ExtensionActivation::OnRequest`] extensions are included only when
542 /// the sandbox carries the matching request label.
543 fn active_for<'a>(&'a self, sandbox: &Sandbox) -> Vec<&'a Arc<dyn LifecycleExtension>> {
544 self.extensions
545 .iter()
546 .filter(|ext| match ext.activation() {
547 ExtensionActivation::Global => true,
548 ExtensionActivation::OnRequest { key } => sandbox_requested_extension(sandbox, key),
549 })
550 .collect()
551 }
552
553 pub async fn configure_launch(
554 &self,

Callers 7

active_namesMethod · 0.80
configure_launchMethod · 0.80
before_launchMethod · 0.80
after_launch_failedMethod · 0.80
after_deleteMethod · 0.80
before_restoreMethod · 0.80
after_restoreMethod · 0.80

Calls 2

activationMethod · 0.45

Tested by

no test coverage detected