Skip to main content

PluginInvoker

Trait PluginInvoker 

Source
pub trait PluginInvoker: Send + Sync {
    // Required method
    fn invoke<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        bag: &'life2 AttributeBag,
        invocation: PluginInvocation<'life3>,
    ) -> Pin<Box<dyn Future<Output = Result<PluginOutcome, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Plugin invocation dispatch. apl-cpex wraps the CPEX PluginManager behind this trait so the apl-core evaluator stays free of cpex-core dependencies.

Required Methods§

Source

fn invoke<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, name: &'life1 str, bag: &'life2 AttributeBag, invocation: PluginInvocation<'life3>, ) -> Pin<Box<dyn Future<Output = Result<PluginOutcome, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Invoke the named plugin against the current request context. The invocation discriminates step vs pipe-chain call.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§