pub struct TokioCommand { /* private fields */ }Implementations§
Source§impl TokioCommand
impl TokioCommand
pub fn new<S: AsRef<OsStr>>(program: S) -> Self
pub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
pub fn args<I, S>(&mut self, args: I) -> &mut Self
pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Self
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self
pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self
pub fn stdin<T: Into<Stdio>>(&mut self, stdin: T) -> &mut Self
pub fn stdout<T: Into<Stdio>>(&mut self, stdout: T) -> &mut Self
pub fn stderr<T: Into<Stdio>>(&mut self, stderr: T) -> &mut Self
pub fn into_inner(self) -> Command
pub fn child(self) -> Result<Child>
pub async fn spawn(&mut self) -> Result<TokioCommandProcess>
pub async fn output(&mut self) -> Result<String>
pub async fn status(&mut self) -> Result<ExitStatus>
pub async fn execute_and_print(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokioCommand
impl !RefUnwindSafe for TokioCommand
impl Send for TokioCommand
impl Sync for TokioCommand
impl Unpin for TokioCommand
impl !UnwindSafe for TokioCommand
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