pub struct PluginRegistry { /* private fields */ }Expand description
Registry of available plugin types for discovery.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
pub fn new() -> Self
Sourcepub fn register_available(&mut self, info: PluginInfo)
pub fn register_available(&mut self, info: PluginInfo)
Register an available plugin type.
Sourcepub fn list_available(&self) -> &[PluginInfo]
pub fn list_available(&self) -> &[PluginInfo]
Get all available plugin types.
Sourcepub fn find(&self, name: &str) -> Option<&PluginInfo>
pub fn find(&self, name: &str) -> Option<&PluginInfo>
Find a plugin by name.
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 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