AsyncPlugin

Trait AsyncPlugin 

Source
pub trait AsyncPlugin: Plugin {
    // Required method
    fn execute_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        command: &'life1 str,
        args: &'life2 [String],
        ctx: &'life3 mut PluginContext,
    ) -> Pin<Box<dyn Future<Output = PluginResult<CommandResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Trait for async plugin operations

Required Methods§

Source

fn execute_async<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, command: &'life1 str, args: &'life2 [String], ctx: &'life3 mut PluginContext, ) -> Pin<Box<dyn Future<Output = PluginResult<CommandResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Execute a command asynchronously

Implementors§