pub struct Command {
command: Command,
}
Fields§
§command: Command
Implementations§
Source§impl Command
impl Command
pub fn new(arg: impl AsRef<OsStr>) -> Self
pub fn from_command(command: Command) -> Self
pub fn arg(&mut self, arg: impl AsRef<OsStr>) -> &mut Self
pub fn args( &mut self, arg: impl IntoIterator<Item = impl AsRef<OsStr>>, ) -> &mut Self
pub fn env( &mut self, key: impl AsRef<OsStr>, val: impl AsRef<OsStr>, ) -> &mut Self
pub fn stdout(&mut self, stdin: impl Into<Stdio>) -> &mut Self
pub fn stderr(&mut self, stdin: impl Into<Stdio>) -> &mut Self
pub fn spawn(&mut self) -> Result<Child>
pub fn status(&mut self) -> Result<ExitStatus>
pub fn output(&mut self) -> Result<Output>
Trait Implementations§
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