pub struct PluginManager { /* private fields */ }Expand description
Plugin manager for high-level plugin operations
Implementations§
Source§impl PluginManager
impl PluginManager
Sourcepub fn with_registry(registry: Arc<RwLock<PluginRegistry>>) -> Self
pub fn with_registry(registry: Arc<RwLock<PluginRegistry>>) -> Self
Create plugin manager with custom registry
Sourcepub fn set_auto_load(&mut self, auto_load: bool)
pub fn set_auto_load(&mut self, auto_load: bool)
Enable/disable auto-loading plugins
Sourcepub fn initialize(&self) -> JitResult<()>
pub fn initialize(&self) -> JitResult<()>
Initialize plugin system
Sourcepub fn load_all_plugins(&self) -> JitResult<Vec<String>>
pub fn load_all_plugins(&self) -> JitResult<Vec<String>>
Load all plugins
Sourcepub fn unload_plugin(&self, name: &str) -> JitResult<()>
pub fn unload_plugin(&self, name: &str) -> JitResult<()>
Unload plugin
Sourcepub fn list_plugins(&self) -> Vec<PluginMetadata>
pub fn list_plugins(&self) -> Vec<PluginMetadata>
List plugins
Sourcepub fn get_plugin_info(&self, name: &str) -> Option<PluginMetadata>
pub fn get_plugin_info(&self, name: &str) -> Option<PluginMetadata>
Get plugin info
Sourcepub fn is_plugin_loaded(&self, name: &str) -> bool
pub fn is_plugin_loaded(&self, name: &str) -> bool
Check if plugin is loaded
Trait Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more