Trait PluginRegistrar

Source
pub trait PluginRegistrar {
    // Required methods
    fn register_plugin(&mut self, plugin: Box<Arc<dyn Plugin>>);
    fn context(&self) -> Arc<dyn PluginContext + Send + Sync>;
}
Expand description

Contains the registration

Required Methods§

Source

fn register_plugin(&mut self, plugin: Box<Arc<dyn Plugin>>)

Registers the given plugin with the given name in the core application.

Source

fn context(&self) -> Arc<dyn PluginContext + Send + Sync>

Returns the plugin context.

Implementors§