pub struct CommandBuilder { /* private fields */ }
Available on crate feature
process
only.Expand description
A builder object that can pipe multiple commands together and automatically configure the child process’ handles correctly.
Implementations§
Source§impl CommandBuilder
impl CommandBuilder
Sourcepub fn new<C>(command: C) -> Self
pub fn new<C>(command: C) -> Self
Creates a new CommandBuilder
.
Trait Implementations§
Source§impl Debug for CommandBuilder
impl Debug for CommandBuilder
Source§impl SpawnCommand for CommandBuilder
impl SpawnCommand for CommandBuilder
Source§fn spawn(self) -> Result<SpawnedCommand>
fn spawn(self) -> Result<SpawnedCommand>
Spawns the command with the stdout and stderr handles configured appropriately.
Auto Trait Implementations§
impl Freeze for CommandBuilder
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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