pub struct ProcessHandle { /* private fields */ }
Implementations§
Source§impl ProcessHandle
impl ProcessHandle
pub fn new(command: &mut Command) -> Result<ProcessHandle>
pub fn kill(&self)
pub fn pid(&self) -> u32
pub async fn terminate(&self, timeout: Duration) -> Result<()>
pub fn check_if_running(&self) -> Result<()>
pub async fn wait_until_finished(self) -> ExeUnitExitStatus
Trait Implementations§
Source§impl Clone for ProcessHandle
impl Clone for ProcessHandle
Source§fn clone(&self) -> ProcessHandle
fn clone(&self) -> ProcessHandle
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 ProcessHandle
impl RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin 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