RunnableCommand

Trait RunnableCommand 

Source
pub trait RunnableCommand:
    Parser
    + Send
    + Sync
    + 'static {
    // Provided methods
    fn callback<'life0, 'async_trait>(
        &'life0 self,
        _cx: Context,
    ) -> Pin<Box<dyn Future<Output = Result<CallbackStatus, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn bind_matches(&mut self, matches: ArgMatches) -> Result<(), Error> { ... }
}

Provided Methods§

Source

fn callback<'life0, 'async_trait>( &'life0 self, _cx: Context, ) -> Pin<Box<dyn Future<Output = Result<CallbackStatus, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn bind_matches(&mut self, matches: ArgMatches) -> Result<(), Error>

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§