pub struct Process { /* private fields */ }
Expand description
Reference of a system process spawned by Process::spawn
§Example
ⓘ
use xprocess::Process;
fn main() {
let process = Process::spawn("sleep").expect("Failed to spawn process");
println!("Spawned process with PID: {}", process.pid());
process.kill().expect("Failed to kill process");
}
Implementations§
Auto Trait Implementations§
impl Freeze for Process
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