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

Fields of Parent

Methods

impl ForkResult
[src]

Return true if this is the child process of the fork()

Returns true if this is the parent process of the fork()

Trait Implementations

impl Clone for ForkResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ForkResult
[src]