Skip to main content

CommandExecuteDyn

Trait CommandExecuteDyn 

pub trait CommandExecuteDyn:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn command_execute_dyn<'a>(
        &'a self,
        program: &'a str,
        args: &'a [&'a str],
    ) -> Pin<Box<dyn Future<Output = Result<CommandOutput, Error>> + Send + 'a>>;
}
Available on crate feature reqsign only.
Expand description

CommandExecuteDyn is the dyn version of CommandExecute.

Required Methods§

fn command_execute_dyn<'a>( &'a self, program: &'a str, args: &'a [&'a str], ) -> Pin<Box<dyn Future<Output = Result<CommandOutput, Error>> + Send + 'a>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

§

impl<T> CommandExecuteDyn for T
where T: CommandExecute + ?Sized,