pub struct Command { /* private fields */ }Implementations§
Source§impl Command
impl Command
pub fn new() -> Self
pub fn piped(&mut self) -> &mut Self
pub fn run<I, S>(&self, command: &str, args: I) -> Result<Output, TerminalError>
Sourcepub fn read_stdout_from(child: &mut Child) -> Result<ExitStatus, TerminalError>
pub fn read_stdout_from(child: &mut Child) -> Result<ExitStatus, TerminalError>
Takes a child process and reads its stdout while waiting for it to finish.
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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