pub struct RunBuilder<'a> { /* private fields */ }
Expand description
A builder for configuring and executing commands or scripts
Implementations§
Source§impl<'a> RunBuilder<'a>
impl<'a> RunBuilder<'a>
Sourcepub fn async_exec(self, async_exec: bool) -> Self
pub fn async_exec(self, async_exec: bool) -> Self
Set whether to run the command asynchronously
Sourcepub fn execute(self) -> Result<CommandResult, RunError>
pub fn execute(self) -> Result<CommandResult, RunError>
Execute the command or script with the configured options
Auto Trait Implementations§
impl<'a> Freeze for RunBuilder<'a>
impl<'a> RefUnwindSafe for RunBuilder<'a>
impl<'a> Send for RunBuilder<'a>
impl<'a> Sync for RunBuilder<'a>
impl<'a> Unpin for RunBuilder<'a>
impl<'a> UnwindSafe for RunBuilder<'a>
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