pub enum PluginRegistration {
Single(Box<dyn Plugin>),
Multiple(Vec<(String, Box<dyn Plugin>)>),
}
Expand description
How many instances of the plugin will be registered
Variants§
Single(Box<dyn Plugin>)
Our module will only register a single plugin
Multiple(Vec<(String, Box<dyn Plugin>)>)
Our module registers several modules. The String in the tuple must be unique identifier
Auto Trait Implementations§
impl Freeze for PluginRegistration
impl RefUnwindSafe for PluginRegistration
impl Send for PluginRegistration
impl Sync for PluginRegistration
impl Unpin for PluginRegistration
impl UnwindSafe for PluginRegistration
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