pub struct PluginRegistry { /* private fields */ }Implementations§
Source§impl PluginRegistry
impl PluginRegistry
pub fn new() -> Self
pub fn register(&mut self, plugin: Arc<dyn DriverPlugin>)
pub fn get(&self, name: &str) -> Option<&dyn DriverPlugin>
pub fn get_by_extension(&self, ext: &str) -> Option<&dyn DriverPlugin>
pub fn list_drivers(&self) -> Vec<&str>
pub fn discover_plugins(&mut self, plugin_dir: &Path)
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