pub struct PluginRegistry { /* private fields */ }Expand description
Registry for managing plugins and algorithms.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn unregister_plugin(&self, name: &str) -> Result<()>
pub fn unregister_plugin(&self, name: &str) -> Result<()>
Unregisters a plugin.
Sourcepub fn register_algorithm(&self, algorithm: Arc<dyn Algorithm>)
pub fn register_algorithm(&self, algorithm: Arc<dyn Algorithm>)
Registers an algorithm.
Sourcepub fn get_algorithm(&self, name: &str) -> Option<Arc<dyn Algorithm>>
pub fn get_algorithm(&self, name: &str) -> Option<Arc<dyn Algorithm>>
Gets an algorithm by name.
Sourcepub fn list_plugins(&self) -> Vec<String>
pub fn list_plugins(&self) -> Vec<String>
Lists all registered plugins.
Sourcepub fn list_algorithms(&self) -> Vec<String>
pub fn list_algorithms(&self) -> Vec<String>
Lists all registered algorithms.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PluginRegistry
impl !RefUnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin 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