Trait PluginServiceTrait

Source
pub trait PluginServiceTrait<J, TR, RR, NR, NFR, SR, TCR, PR>: Send + Sync{
    // Required methods
    fn new(runner: PluginRunner) -> Self;
    fn call_plugin<'life0, 'async_trait>(
        &'life0 self,
        plugin: PluginModel,
        plugin_call_request: PluginCallRequest,
        state: Arc<ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>>,
    ) -> Pin<Box<dyn Future<Output = Result<PluginCallResponse, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn new(runner: PluginRunner) -> Self

Source

fn call_plugin<'life0, 'async_trait>( &'life0 self, plugin: PluginModel, plugin_call_request: PluginCallRequest, state: Arc<ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>>, ) -> Pin<Box<dyn Future<Output = Result<PluginCallResponse, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<J, TR, RR, NR, NFR, SR, TCR, PR> PluginServiceTrait<J, TR, RR, NR, NFR, SR, TCR, PR> for PluginService<PluginRunner>