Looks up a registered plugin by kind. # Parameters - `plugin_kind`: Plugin kind to resolve. # Returns The registered plugin implementation for `plugin_kind`, or `None` when the kind is unknown. # Notes The returned plugin is shared by [`Arc`], so callers receive a cheap clone.
(plugin_kind: &str)
| 841 | /// # Notes |
| 842 | /// The returned plugin is shared by [`Arc`], so callers receive a cheap clone. |
| 843 | pub fn lookup_plugin(plugin_kind: &str) -> Option<Arc<dyn Plugin>> { |
| 844 | let _ = ensure_builtin_plugins_registered(); |
| 845 | PLUGIN_HANDLERS |
| 846 | .read() |
| 847 | .ok() |
| 848 | .and_then(|guard| guard.get(plugin_kind).cloned()) |
| 849 | } |
| 850 | |
| 851 | /// Validates a plugin configuration document. |
| 852 | /// |
no test coverage detected