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
Child
Implementations
impl ForkResult
Trait Implementations
impl Clone for ForkResult
fn clone(&Self) -> ForkResult
impl Copy for ForkResult
impl Debug for ForkResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
Auto Trait Implementations
impl RefUnwindSafe for ForkResult
impl Send for ForkResult
impl Sync for ForkResult
impl Unpin for ForkResult
impl UnwindSafe for ForkResult
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T