Skip to main content

PluginFactory

Trait PluginFactory 

Source
pub trait PluginFactory:
    Send
    + Sync
    + 'static {
    // Required methods
    fn name(&self) -> &str;
    fn build(&self, ctx: &mut BuildCtx<'_>) -> Result<Stage>;

    // Provided methods
    fn description(&self) -> &str { ... }
    fn execution(&self) -> Execution { ... }
}
Expand description

Constructs Plugin instances from a declared entry.

Required Methods§

Source

fn name(&self) -> &str

Source

fn build(&self, ctx: &mut BuildCtx<'_>) -> Result<Stage>

Provided Methods§

Source

fn description(&self) -> &str

Source

fn execution(&self) -> Execution

Default placement. Overridable per entry with detach = true|false.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§