Skip to main content

InlineCommands

Trait InlineCommands 

Source
pub trait InlineCommands: Send + Sync {
    // Required method
    fn run_bash<'life0, 'life1, 'async_trait>(
        &'life0 self,
        command: &'life1 str,
        cancel: CancellationToken,
    ) -> Pin<Box<dyn Future<Output = Result<SubCallAnswer, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn run_bash<'life0, 'life1, 'async_trait>( &'life0 self, command: &'life1 str, cancel: CancellationToken, ) -> Pin<Box<dyn Future<Output = Result<SubCallAnswer, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Err is the call not producing an answer: unknown tool, refused, invalid, or failed; the text says which.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§