pub struct Command { /* private fields */ }Implementations§
Source§impl Command
impl Command
pub fn new( program: impl AsRef<OsStr>, caller_file: impl AsRef<str>, manifest_dir: impl AsRef<str>, ) -> Self
pub fn current_dir(self, dir: impl AsRef<Path>) -> Self
pub fn arg(self, arg: impl AsRef<OsStr>) -> Self
pub fn success(self) -> Self
pub fn failure(self) -> Self
pub fn code(self, code: i32) -> Self
pub fn stdin(self, bytes: impl AsRef<[u8]>) -> Self
pub fn stdout(self, bytes: impl AsRef<[u8]>) -> Self
pub fn stderr(self, bytes: impl AsRef<[u8]>) -> Self
pub fn spawn(&mut self)
pub fn wait(&mut self)
pub fn execute(&mut self)
pub fn stop(&mut self)
pub fn get_program(&self) -> &OsStr
pub fn get_current_dir(&self) -> &Path
pub fn get_stdout(&self) -> Cow<'_, str>
pub fn get_stderr(&self) -> Cow<'_, str>
pub fn get_stdout_raw(&self) -> &[u8] ⓘ
pub fn get_stderr_raw(&self) -> &[u8] ⓘ
pub fn get_status(&self) -> ExitStatus
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin 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