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

Method register

crates/openshell-providers/src/lib.rs:127–132  ·  view source on GitHub ↗
(&mut self, plugin: P)

Source from the content-addressed store, hash-verified

125 }
126
127 pub fn register<P>(&mut self, plugin: P)
128 where
129 P: ProviderPlugin + 'static,
130 {
131 self.plugins.insert(plugin.id(), Box::new(plugin));
132 }
133
134 #[must_use]
135 pub fn get(&self, id: &str) -> Option<&dyn ProviderPlugin> {

Callers 1

newMethod · 0.45

Calls 1

idMethod · 0.45

Tested by

no test coverage detected