pub struct ChildHandle { /* private fields */ }Expand description
Async wrapper around a spawned child process.
Implementations§
Source§impl ChildHandle
impl ChildHandle
Sourcepub async fn wait(&self) -> Result<ExitStatus>
pub async fn wait(&self) -> Result<ExitStatus>
Waits for child termination.
Sourcepub async fn wait_with_options(
&self,
options: CommandOptions,
) -> Result<ExitStatus>
pub async fn wait_with_options( &self, options: CommandOptions, ) -> Result<ExitStatus>
Waits for child termination using options.
Sourcepub async fn try_wait(&self) -> Result<Option<ExitStatus>>
pub async fn try_wait(&self) -> Result<Option<ExitStatus>>
Non-blocking check for child termination.
Sourcepub async fn output_with_options(
&self,
options: CommandOptions,
) -> Result<Output>
pub async fn output_with_options( &self, options: CommandOptions, ) -> Result<Output>
Waits for child termination and captures output using options.
Trait Implementations§
Source§impl Clone for ChildHandle
impl Clone for ChildHandle
Source§fn clone(&self) -> ChildHandle
fn clone(&self) -> ChildHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChildHandle
impl RefUnwindSafe for ChildHandle
impl Send for ChildHandle
impl Sync for ChildHandle
impl Unpin for ChildHandle
impl UnsafeUnpin for ChildHandle
impl UnwindSafe for ChildHandle
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