pub struct PluginDiscovery { /* private fields */ }Expand description
Plugin discovery
Provides functionality for discovering plugins from various sources.
Implementations§
Source§impl PluginDiscovery
impl PluginDiscovery
Sourcepub fn discover(&self) -> Vec<PluginMetadata>
pub fn discover(&self) -> Vec<PluginMetadata>
Discover plugins in all search paths
This is a placeholder for future dynamic plugin loading. Currently returns an empty list as plugins must be compiled in.
Sourcepub fn scan_metadata_files(&self) -> Vec<PathBuf>
pub fn scan_metadata_files(&self) -> Vec<PathBuf>
Scan for plugin metadata files
Looks for plugin.json or plugin.toml files in the search paths.
Sourcepub fn load_metadata_from_file(
&self,
_path: &Path,
) -> Result<PluginMetadata, PluginError>
pub fn load_metadata_from_file( &self, _path: &Path, ) -> Result<PluginMetadata, PluginError>
Load plugin metadata from a file
Placeholder for loading plugin metadata from JSON or TOML files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginDiscovery
impl RefUnwindSafe for PluginDiscovery
impl Send for PluginDiscovery
impl Sync for PluginDiscovery
impl Unpin for PluginDiscovery
impl UnwindSafe for PluginDiscovery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more