pub struct ShellProcessManager;Expand description
Default process manager that shells out using the system shell.
Trait Implementations§
Source§impl Clone for ShellProcessManager
impl Clone for ShellProcessManager
Source§impl Default for ShellProcessManager
impl Default for ShellProcessManager
Source§impl ProcessManager for ShellProcessManager
impl ProcessManager for ShellProcessManager
type Handle = ChildHandle
fn run_command( &mut self, ctx: &CommandContext, script: &str, options: CommandOptions, ) -> Result<CommandResult<Self::Handle>>
Source§fn run_argv(
&mut self,
ctx: &CommandContext,
argv: &[String],
options: CommandOptions,
) -> Result<CommandResult<Self::Handle>>
fn run_argv( &mut self, ctx: &CommandContext, argv: &[String], options: CommandOptions, ) -> Result<CommandResult<Self::Handle>>
Run an executable directly with an argument vector (no shell).
Backs the
RUN ["exe", "arg", ...] exec form. The default
implementation bails so existing out-of-tree managers keep
compiling; in-tree managers override this.Source§fn spawn_command(
&mut self,
ctx: &CommandContext,
script: &str,
options: CommandOptions,
) -> Result<CommandResult<Self::Handle>>
fn spawn_command( &mut self, ctx: &CommandContext, script: &str, options: CommandOptions, ) -> Result<CommandResult<Self::Handle>>
Spawn a command without waiting for completion. Returns a background
handle that can be polled or waited on later. The default implementation
delegates to
run_command with CommandMode::Background.Source§fn spawn_argv(
&mut self,
ctx: &CommandContext,
argv: &[String],
options: CommandOptions,
) -> Result<CommandResult<Self::Handle>>
fn spawn_argv( &mut self, ctx: &CommandContext, argv: &[String], options: CommandOptions, ) -> Result<CommandResult<Self::Handle>>
Spawn an argv command without waiting for completion. The default
implementation delegates to
run_argv, mirroring spawn_command.Auto Trait Implementations§
impl Freeze for ShellProcessManager
impl RefUnwindSafe for ShellProcessManager
impl Send for ShellProcessManager
impl Sync for ShellProcessManager
impl Unpin for ShellProcessManager
impl UnsafeUnpin for ShellProcessManager
impl UnwindSafe for ShellProcessManager
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