pub struct PluginRegistry { /* private fields */ }Expand description
Registry of loaded plugins.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
pub fn new() -> Self
Sourcepub fn load_all(project_root: Option<&Path>) -> Self
pub fn load_all(project_root: Option<&Path>) -> Self
Load plugins from all configured directories.
Sourcepub fn skill_dirs(&self) -> Vec<PathBuf>
pub fn skill_dirs(&self) -> Vec<PathBuf>
Get all skill directories from loaded plugins.
Sourcepub fn hooks(&self) -> Vec<&PluginHook>
pub fn hooks(&self) -> Vec<&PluginHook>
Get all hook definitions from loaded plugins.
Sourcepub fn executable_tools(&self) -> Vec<PluginExecTool>
pub fn executable_tools(&self) -> Vec<PluginExecTool>
Discover all executable tools from plugin bin/ directories.
Auto Trait Implementations§
impl Freeze for PluginRegistry
impl RefUnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
impl UnwindSafe for PluginRegistry
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