Struct xtask_watch::CommandList
source · 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 copy 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 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