pub struct PluginInstaller { /* private fields */ }Expand description
Unified plugin installer
Implementations§
Source§impl PluginInstaller
impl PluginInstaller
Sourcepub fn new(loader_config: PluginLoaderConfig) -> LoaderResult<Self>
pub fn new(loader_config: PluginLoaderConfig) -> LoaderResult<Self>
Create a new plugin installer with default configuration
Sourcepub async fn init(&self) -> LoaderResult<()>
pub async fn init(&self) -> LoaderResult<()>
Initialize the installer (creates directories, loads metadata)
Sourcepub async fn install(
&self,
source_str: &str,
options: InstallOptions,
) -> LoaderResult<PluginId>
pub async fn install( &self, source_str: &str, options: InstallOptions, ) -> LoaderResult<PluginId>
Install a plugin from a source string
Automatically detects and handles the source type
Sourcepub async fn install_from_source(
&self,
source: &PluginSource,
options: InstallOptions,
) -> LoaderResult<PluginId>
pub async fn install_from_source( &self, source: &PluginSource, options: InstallOptions, ) -> LoaderResult<PluginId>
Install a plugin from a specific source
Sourcepub async fn uninstall(&self, plugin_id: &PluginId) -> LoaderResult<()>
pub async fn uninstall(&self, plugin_id: &PluginId) -> LoaderResult<()>
Uninstall a plugin
Sourcepub async fn list_installed(&self) -> Vec<PluginId>
pub async fn list_installed(&self) -> Vec<PluginId>
List installed plugins
Sourcepub async fn update(&self, plugin_id: &PluginId) -> LoaderResult<()>
pub async fn update(&self, plugin_id: &PluginId) -> LoaderResult<()>
Update a plugin to the latest version
Sourcepub async fn update_all(&self) -> LoaderResult<Vec<PluginId>>
pub async fn update_all(&self) -> LoaderResult<Vec<PluginId>>
Update all plugins to their latest versions
Sourcepub async fn clear_caches(&self) -> LoaderResult<()>
pub async fn clear_caches(&self) -> LoaderResult<()>
Clear all caches (downloads and Git repositories)
Sourcepub async fn get_cache_stats(&self) -> LoaderResult<CacheStats>
pub async fn get_cache_stats(&self) -> LoaderResult<CacheStats>
Get cache statistics
Sourcepub async fn get_plugin_metadata(
&self,
plugin_id: &PluginId,
) -> Option<PluginMetadata>
pub async fn get_plugin_metadata( &self, plugin_id: &PluginId, ) -> Option<PluginMetadata>
Get plugin metadata
Sourcepub async fn list_plugins_with_metadata(
&self,
) -> Vec<(PluginId, PluginMetadata)>
pub async fn list_plugins_with_metadata( &self, ) -> Vec<(PluginId, PluginMetadata)>
List all plugins with metadata
Auto Trait Implementations§
impl !Freeze for PluginInstaller
impl !RefUnwindSafe for PluginInstaller
impl Send for PluginInstaller
impl Sync for PluginInstaller
impl Unpin for PluginInstaller
impl !UnwindSafe for PluginInstaller
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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