Enum nix::unistd::ForkResult
[−]
[src]
pub enum ForkResult {
Parent {
child: pid_t,
},
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_t |
ChildMethods
impl ForkResult[src]
fn is_child(&self) -> bool
Return true if this is the child process of the fork()
fn is_parent(&self) -> bool
Returns true if this is the parent process of the fork()
Trait Implementations
impl Clone for ForkResult[src]
fn clone(&self) -> ForkResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more