Trait CanRunCommand

Source
pub trait CanRunCommand<Args>: HasOutputType + HasErrorType
where Args: Async,
{ // Required method fn run_command( &self, args: &Args, ) -> impl Future<Output = Result<Self::Output, Self::Error>> + Send; }

Required Methods§

Source

fn run_command( &self, args: &Args, ) -> impl Future<Output = Result<Self::Output, Self::Error>> + Send

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§

Source§

impl<App, Args> CanRunCommand<Args> for App
where Args: Async, App: HasOutputType + HasErrorType + HasComponents, App::Components: CommandRunner<App, Args>,