pub struct Cmd { /* private fields */ }
Implementations§
Source§impl Cmd
impl Cmd
pub fn builder<S: AsRef<OsStr>>(program: S) -> CommandBuilder
pub fn new<S: AsRef<OsStr>>(program: S) -> Self
pub fn command(self) -> Command
pub fn run(self) -> Result<Option<ExitStatus>>
pub fn output(self) -> Result<Output>
pub fn read_to_end( stdout: Option<ChildStdout>, stderr: Option<ChildStderr>, ) -> Result<(Vec<u8>, Vec<u8>)>
pub fn pipe<T>(self, cmd2: T) -> Result<Output, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
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