pub struct LocalRegistry { /* private fields */ }Expand description
In-memory plugin registry for local installations
Implementations§
Source§impl LocalRegistry
impl LocalRegistry
Sourcepub fn register(&mut self, entry: PluginRegistryEntry) -> Result<()>
pub fn register(&mut self, entry: PluginRegistryEntry) -> Result<()>
Register a plugin in the local registry
Sourcepub fn find_by_name(&self, name: &str) -> Option<PluginRegistryEntry>
pub fn find_by_name(&self, name: &str) -> Option<PluginRegistryEntry>
Find a plugin by name
Sourcepub fn find_by_version(
&self,
name: &str,
version: &str,
) -> Option<PluginRegistryEntry>
pub fn find_by_version( &self, name: &str, version: &str, ) -> Option<PluginRegistryEntry>
Find a plugin by name and version
Sourcepub fn list_all(&self) -> Vec<PluginRegistryEntry>
pub fn list_all(&self) -> Vec<PluginRegistryEntry>
List all registered plugins
Sourcepub fn search(&self, query: &str) -> Vec<PluginRegistryEntry>
pub fn search(&self, query: &str) -> Vec<PluginRegistryEntry>
Search for plugins by keyword
Sourcepub fn get_latest(&self, name: &str) -> Option<PluginRegistryEntry>
pub fn get_latest(&self, name: &str) -> Option<PluginRegistryEntry>
Get the latest version of a plugin
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalRegistry
impl RefUnwindSafe for LocalRegistry
impl Send for LocalRegistry
impl Sync for LocalRegistry
impl Unpin for LocalRegistry
impl UnsafeUnpin for LocalRegistry
impl UnwindSafe for LocalRegistry
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