(&mut self, plugin: P)
| 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> { |