pub struct PluginManager { /* private fields */ }
Expand description
Plugin manager
Implementations§
Source§impl PluginManager
impl PluginManager
pub fn new() -> Self
pub fn register_plugin(&mut self, plugin: Box<dyn Plugin>)
pub fn get_plugin_count(&self) -> usize
pub async fn initialize_all(&mut self) -> Result<(), McpError>
pub async fn shutdown_all(&mut self) -> Result<(), McpError>
pub fn get_enabled_plugins(&self) -> Vec<String>
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 !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