pub struct ChildHandle { /* private fields */ }Implementations§
Source§impl ChildHandle
impl ChildHandle
pub fn id(&self) -> Option<u32>
pub async fn wait(&self) -> Result<ExitStatus>
pub async fn wait_with_options( &self, options: CommandOptions, ) -> Result<ExitStatus>
pub async fn try_wait(&self) -> Result<Option<ExitStatus>>
pub async fn kill(&self) -> Result<()>
pub async fn output(&self) -> Result<Output>
pub async fn output_with_options( &self, options: CommandOptions, ) -> Result<Output>
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