pub struct PluginRegistry { /* private fields */ }Expand description
Name-to-factory plugin registry, populated at build or startup time.
Resolving the same name twice yields distinct PluginHandles (and
thus distinct cordis::PluginKey identities), mirroring one plugin
instance per entry. The registry pre-registers cordis_group’s
group marker.
With the dynamic feature, a
DynamicPluginResolver can be
attached as a fallback: names missing from the registry are then looked
up as dynamic libraries in its directories.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Trait Implementations§
Source§impl Clone for PluginRegistry
impl Clone for PluginRegistry
Source§fn clone(&self) -> PluginRegistry
fn clone(&self) -> PluginRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 PluginResolver for PluginRegistry
impl PluginResolver for PluginRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for PluginRegistry
impl !UnwindSafe for PluginRegistry
impl Freeze for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin 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