pub struct Executor(/* private fields */);Implementations§
Source§impl Executor
impl Executor
pub fn new(program: impl AsRef<OsStr>) -> Self
pub fn command(&mut self) -> &mut Command
pub fn ignore_stdin(&mut self)
pub fn ignore_stdout(&mut self)
pub fn ignore_stderr(&mut self)
pub fn capture_stdout(&mut self)
pub fn capture_stderr(&mut self)
pub async fn execute(&mut self) -> ExecutorResult
pub async fn execute_with_input(&mut self, input: &mut Input) -> ExecutorResult
pub async fn spawn(&mut self) -> Result<Child, ExecutorError>
pub async fn wait(&mut self, process: Child) -> ExecutorResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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