pub struct TokioCommandExecute;Expand description
Tokio-based implementation of the CommandExecute trait.
This struct provides async command execution capabilities using Tokio’s process spawning operations.
Trait Implementations§
Source§impl Clone for TokioCommandExecute
impl Clone for TokioCommandExecute
Source§fn clone(&self) -> TokioCommandExecute
fn clone(&self) -> TokioCommandExecute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandExecute for TokioCommandExecute
Available on non-target_family=wasm only.
impl CommandExecute for TokioCommandExecute
Available on non-
target_family=wasm only.Source§async fn command_execute(
&self,
program: &str,
args: &[&str],
) -> Result<CommandOutput>
async fn command_execute( &self, program: &str, args: &[&str], ) -> Result<CommandOutput>
Execute a command with the given program and arguments.
impl Copy for TokioCommandExecute
Source§impl Debug for TokioCommandExecute
impl Debug for TokioCommandExecute
Source§impl Default for TokioCommandExecute
impl Default for TokioCommandExecute
Source§fn default() -> TokioCommandExecute
fn default() -> TokioCommandExecute
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokioCommandExecute
impl RefUnwindSafe for TokioCommandExecute
impl Send for TokioCommandExecute
impl Sync for TokioCommandExecute
impl Unpin for TokioCommandExecute
impl UnsafeUnpin for TokioCommandExecute
impl UnwindSafe for TokioCommandExecute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommandExecuteDyn for Twhere
T: CommandExecute + ?Sized,
impl<T> CommandExecuteDyn for Twhere
T: CommandExecute + ?Sized,
Source§fn command_execute_dyn<'a>(
&'a self,
program: &'a str,
args: &'a [&'a str],
) -> Pin<Box<dyn Future<Output = Result<CommandOutput, Error>> + Send + 'a>>
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 version of
CommandExecute::command_execute.