pub enum Fork {
Parent(Child),
Child,
}Expand description
Result of a fork operation.
In the parent process fork will return Fork::Parent,
while in the child it will return Fork::Child.
The Parent variant holds a struct that can be used to
wait for the child process to exit.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fork
impl RefUnwindSafe for Fork
impl Send for Fork
impl Sync for Fork
impl Unpin for Fork
impl UnsafeUnpin for Fork
impl UnwindSafe for Fork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more