Trait PluginRunnerTrait

Source
pub trait PluginRunnerTrait {
    // Required method
    fn run<'life0, 'life1, 'async_trait, J>(
        &'life0 self,
        socket_path: &'life1 str,
        script_path: String,
        script_params: String,
        state: Arc<ThinData<AppState<J>>>,
    ) -> Pin<Box<dyn Future<Output = Result<ScriptResult, PluginError>> + Send + 'async_trait>>
       where J: 'async_trait + JobProducerTrait + 'static,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait, J>( &'life0 self, socket_path: &'life1 str, script_path: String, script_params: String, state: Arc<ThinData<AppState<J>>>, ) -> Pin<Box<dyn Future<Output = Result<ScriptResult, PluginError>> + Send + 'async_trait>>
where J: 'async_trait + JobProducerTrait + 'static, Self: 'async_trait, 'life0: 'async_trait, 'life1: '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§