Skip to main content

PluginFactory

Trait PluginFactory 

Source
pub trait PluginFactory:
    Send
    + Sync
    + 'static {
    // Required method
    fn create(&self, config: JsonValue) -> Result<Box<dyn Plugin>>;
}
Expand description

Constructs a Plugin from runtime configuration.

Required Methods§

Source

fn create(&self, config: JsonValue) -> Result<Box<dyn Plugin>>

Construct a plugin from its config section (JSON from folk.toml).

Implementors§