pub struct CommandList { /* private fields */ }Expand description
A list of commands to run.
Implementations§
Source§impl CommandList
impl CommandList
Sourcepub fn spawn(&mut self, callback: impl FnMut(Result<Child>) -> bool)
pub fn spawn(&mut self, callback: impl FnMut(Result<Child>) -> bool)
Spawn each command of the list one after the other.
The caller is responsible to wait the commands.
Sourcepub fn status(&mut self) -> Result<ExitStatus>
pub fn status(&mut self) -> Result<ExitStatus>
Run all the commands sequentially using std::process::Command::status and stop at the
first failure.
Trait Implementations§
Source§impl Clone for CommandList
impl Clone for CommandList
Source§fn clone(&self) -> CommandList
fn clone(&self) -> CommandList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandList
impl Debug for CommandList
Source§impl From<Command> for CommandList
impl From<Command> for CommandList
Auto Trait Implementations§
impl Freeze for CommandList
impl RefUnwindSafe for CommandList
impl Send for CommandList
impl Sync for CommandList
impl Unpin for CommandList
impl UnwindSafe for CommandList
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