[][src]Enum nix::unistd::ForkResult

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

Parent

Fields 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]

impl Copy for ForkResult[src]

impl Debug for ForkResult[src]

Auto Trait Implementations

impl Send for ForkResult

impl Sync for ForkResult

impl Unpin for ForkResult

impl UnwindSafe for ForkResult

impl RefUnwindSafe for ForkResult

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]