pub struct Child {
pub pid: Pid,
}
Expand description
Child represents the forked process.
Fields§
§pid: Pid
The pid of the child process.
Implementations§
source§impl Child
impl Child
sourcepub fn into_pid(self) -> Pid
pub fn into_pid(self) -> Pid
Convert Child into [Pid].
If Child is dropped without Child::wait()
, it logs warning message. Users who wait
processes in other ways should suppress the warning by unwrapping Child into [Pid].
The caller of this method now owns the process and is responsible for managing the termination of the process.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl UnwindSafe for Child
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