pub struct CommandBuilder { /* private fields */ }Implementations§
Source§impl CommandBuilder
impl CommandBuilder
pub fn new(program: impl AsRef<OsStr>) -> Self
pub fn arg(self, arg: impl AsRef<OsStr>) -> Self
pub fn args<I, S>(self, args: I) -> Self
pub async fn status(self, handle: &RuntimeHandle) -> Result<ExitStatus>
pub async fn status_with_options( self, handle: &RuntimeHandle, options: CommandOptions, ) -> Result<ExitStatus>
pub async fn output(self, handle: &RuntimeHandle) -> Result<Output>
pub async fn output_with_options( self, handle: &RuntimeHandle, options: CommandOptions, ) -> Result<Output>
pub async fn spawn(self, handle: &RuntimeHandle) -> Result<ChildHandle>
pub async fn spawn_with_options( self, handle: &RuntimeHandle, options: CommandOptions, ) -> Result<ChildHandle>
Auto Trait Implementations§
impl Freeze for CommandBuilder
impl !RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnsafeUnpin for CommandBuilder
impl !UnwindSafe for CommandBuilder
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