pub trait CanRunCommand<Args>: HasOutputType + HasErrorTypewhere
Args: Async,{
// Required method
fn run_command(
&self,
args: &Args,
) -> impl Future<Output = Result<Self::Output, Self::Error>> + Send;
}Required Methods§
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.