pub struct Command<'a> { /* private fields */ }Expand description
Fluent subprocess builder, created via ctx.command(program).
Implementations§
Source§impl<'a> Command<'a>
impl<'a> Command<'a>
pub fn arg(self, a: impl Into<String>) -> Self
pub fn args<I, S>(self, args: I) -> Self
pub fn cwd(self, dir: impl Into<String>) -> Self
pub fn env(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn envs<I, K, V>(self, vars: I) -> Self
pub fn stdin(self, input: impl Into<String>) -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Command<'a>
impl<'a> !Send for Command<'a>
impl<'a> !Sync for Command<'a>
impl<'a> !UnwindSafe for Command<'a>
impl<'a> Freeze for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnsafeUnpin for Command<'a>
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