Enum nix::unistd::ForkResult
[−]
[src]
pub enum ForkResult {
Parent {
child: Pid,
},
Child,
}Represents the successful result of calling fork
When fork is called, the process continues execution in the parent process
and in the new child. This return type can be examined to determine whether
you are now executing in the parent process or in the child.
Variants
ParentFields of Parent
child: Pid |
Child
Methods
impl ForkResult[src]
pub fn is_child(&self) -> bool[src]
Return true if this is the child process of the fork()
pub fn is_parent(&self) -> bool[src]
Returns true if this is the parent process of the fork()
Trait Implementations
impl Clone for ForkResult[src]
fn clone(&self) -> ForkResult[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more