pub struct PluginRegistry { /* private fields */ }Expand description
Plugin registry. The OSS build always constructs an empty registry; the
Pro build will populate it from ~/.spool/plugins/.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn load_from_dir(_dir: &Path) -> Self
pub fn load_from_dir(_dir: &Path) -> Self
Load plugins from a directory. The OSS build is a no-op stub — plugins are never loaded in the open-source distribution.
The Pro build will replace this function (via cargo feature or
separate compilation unit) with a real libloading-based loader.
Trait Implementations§
Source§impl Default for PluginRegistry
impl Default for PluginRegistry
Source§fn default() -> PluginRegistry
fn default() -> PluginRegistry
Returns the “default value” for a type. Read more
Source§impl Drop for PluginRegistry
impl Drop for PluginRegistry
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