pub trait PluginServiceTrait<J: JobProducerTrait + 'static>: Send + Sync {
// Required methods
fn new(runner: PluginRunner) -> Self;
fn call_plugin<'life0, 'async_trait>(
&'life0 self,
code_path: String,
plugin_call_request: PluginCallRequest,
state: Arc<ThinData<AppState<J>>>,
) -> Pin<Box<dyn Future<Output = Result<PluginCallResponse, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
fn new(runner: PluginRunner) -> Self
fn call_plugin<'life0, 'async_trait>(
&'life0 self,
code_path: String,
plugin_call_request: PluginCallRequest,
state: Arc<ThinData<AppState<J>>>,
) -> 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.