pub struct PluginRegistry { /* private fields */ }Expand description
Plugin registry client
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn default_registry() -> Self
pub fn default_registry() -> Self
Default registry (https://mcp-plugins.io or similar)
Sourcepub async fn install(
&self,
name: &str,
version: Option<&str>,
) -> McpResult<PathBuf>
pub async fn install( &self, name: &str, version: Option<&str>, ) -> McpResult<PathBuf>
Download and install a plugin
Sourcepub async fn info(&self, name: &str) -> McpResult<PluginInfo>
pub async fn info(&self, name: &str) -> McpResult<PluginInfo>
Get plugin info from registry
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