Trait Command
Source pub trait Command<C>:
Send
+ Sync
+ 'static {
// Required methods
fn commands(&self) -> &'static [&'static str];
fn help(&self) -> &'static str;
fn run<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
s: &'life1 Hackshell<C>,
cmd: &'life2 [String],
ctx: &'life3 C,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}