pub struct PluginManager { /* private fields */ }Implementations§
Source§impl PluginManager
impl PluginManager
pub fn new(config: PluginManagerConfig) -> Self
pub fn install_root(&self) -> PathBuf
pub fn registry_path(&self) -> PathBuf
pub fn settings_path(&self) -> PathBuf
pub fn plugin_registry(&self) -> Result<PluginRegistry, PluginError>
pub fn list_plugins(&self) -> Result<Vec<PluginSummary>, PluginError>
pub fn list_installed_plugins(&self) -> Result<Vec<PluginSummary>, PluginError>
pub fn discover_plugins(&self) -> Result<Vec<PluginDefinition>, PluginError>
pub fn aggregated_hooks(&self) -> Result<PluginHooks, PluginError>
pub fn aggregated_tools(&self) -> Result<Vec<PluginTool>, PluginError>
pub fn validate_plugin_source( &self, source: &str, ) -> Result<PluginManifest, PluginError>
pub fn install(&mut self, source: &str) -> Result<InstallOutcome, PluginError>
pub fn enable(&mut self, plugin_id: &str) -> Result<(), PluginError>
pub fn disable(&mut self, plugin_id: &str) -> Result<(), PluginError>
pub fn uninstall(&mut self, plugin_id: &str) -> Result<(), PluginError>
pub fn update(&mut self, plugin_id: &str) -> Result<UpdateOutcome, PluginError>
Trait Implementations§
Source§impl Clone for PluginManager
impl Clone for PluginManager
Source§fn clone(&self) -> PluginManager
fn clone(&self) -> PluginManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginManager
impl Debug for PluginManager
Source§impl PartialEq for PluginManager
impl PartialEq for PluginManager
impl Eq for PluginManager
impl StructuralPartialEq for PluginManager
Auto Trait Implementations§
impl Freeze for PluginManager
impl RefUnwindSafe for PluginManager
impl Send for PluginManager
impl Sync for PluginManager
impl Unpin for PluginManager
impl UnsafeUnpin for PluginManager
impl UnwindSafe for PluginManager
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