pub struct ProcessHandle { /* private fields */ }Expand description
An independent exit reader. On Unix it shares std’s cached reap state; on Windows it owns a duplicated process handle, never a borrowed handle value. Keeping this reader alive does not keep an owned process tree alive.
Implementations§
Source§impl ProcessHandle
impl ProcessHandle
pub fn try_clone(&self) -> Result<Self>
Sourcepub fn creation_time(&self) -> Option<SystemTime>
pub fn creation_time(&self) -> Option<SystemTime>
Native creation time on Windows/macOS; spawn observation time on other Unix hosts.
pub fn try_wait(&self) -> Result<Option<ExitStatus>>
pub fn wait(&self) -> Result<ExitStatus>
pub fn wait_timeout(&self, timeout: Duration) -> Result<Option<ExitStatus>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessHandle
impl RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin for ProcessHandle
impl UnsafeUnpin for ProcessHandle
impl UnwindSafe for ProcessHandle
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