pub struct Process {
handle: Handle,
main_thread_handle: Handle,
}
🔬This is a nightly-only experimental API. (
process_internals
)Expand description
A value representing a child process.
The lifetime of this value is linked to the lifetime of the actual process - the Process destructor calls self.finish() which waits for the process to terminate.
Fields§
§handle: Handle
🔬This is a nightly-only experimental API. (
§process_internals
)main_thread_handle: Handle
🔬This is a nightly-only experimental API. (
process_internals
)Implementations§
source§impl Process
impl Process
pub fn kill(&mut self) -> Result<()>
🔬This is a nightly-only experimental API. (
process_internals
)pub fn id(&self) -> u32
🔬This is a nightly-only experimental API. (
process_internals
)pub fn main_thread_handle(&self) -> BorrowedHandle<'_>
🔬This is a nightly-only experimental API. (
process_internals
)pub fn wait(&mut self) -> Result<ExitStatus>
🔬This is a nightly-only experimental API. (
process_internals
)pub fn try_wait(&mut self) -> Result<Option<ExitStatus>>
🔬This is a nightly-only experimental API. (
process_internals
)pub fn handle(&self) -> &Handle ⓘ
🔬This is a nightly-only experimental API. (
process_internals
)pub fn into_handle(self) -> Handle ⓘ
🔬This is a nightly-only experimental API. (
process_internals
)Auto Trait Implementations§
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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