Enum nix::unistd::ForkResult
pub enum ForkResult {
Parent { child: Pid },
Child,
}Documentation
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
ChildImplementations
impl ForkResult
Trait Implementations
impl Clone for ForkResult
fn clone(&Self) -> ForkResultimpl Copy for ForkResultimpl Debug for ForkResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::ResultAuto Trait Implementations
impl RefUnwindSafe for ForkResultimpl Send for ForkResultimpl Sync for ForkResultimpl Unpin for ForkResultimpl UnwindSafe for ForkResultBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T