#[repr(transparent)]pub struct Fork(u32);
Expand description
Flags to control behavior of ProcMgr::fork()
.
Tuple Fields§
§0: u32
Implementations§
Source§impl Fork
impl Fork
Sourcepub const CopyFd: Mask<Self, bool>
pub const CopyFd: Mask<Self, bool>
Duplicate file descriptor table to the child instead of sharing it with the parent. Cannot
used together with [Self::clear_fd()
].
This has the same value as RFFDG
.
Sourcepub const CreateProcess: Mask<Self, bool>
pub const CreateProcess: Mask<Self, bool>
Create a child process.
This has the same value as RFPROC
.
Sourcepub const ClearFd: Mask<Self, bool>
pub const ClearFd: Mask<Self, bool>
Create an empty file descriptor table for the child. Cannot used together with
[Self::copy_fd()
].
This has the same value as RFCFDG
.
Sourcepub const CustomSignal: Mask<Self, bool>
pub const CustomSignal: Mask<Self, bool>
Enable [Self::parent_signal()
].
This has the same value as RFTSIGZMB
.
Sourcepub const ParentSignal: Mask<Self, Signal>
pub const ParentSignal: Mask<Self, Signal>
Use this signal instead of SIGCHLD
to notify the parent. Requires
[Self::custom_signal()
] to be enabled.
This has the same value produced by RFTSIGNUM
macro.
Sourcepub const fn zeroed() -> Self
pub const fn zeroed() -> Self
Returns a new set with all bits of the backed-storage set to zero.
Sourcepub fn has_any(self, rhs: impl Into<Self>) -> bool
pub fn has_any(self, rhs: impl Into<Self>) -> bool
Returns true
if this set contains any flags in the rhs
set.
This performs the &
operation on the underlying value and check if the results is
non-zero.
Trait Implementations§
Source§impl BitOrAssign<Mask<Fork, bool>> for Fork
impl BitOrAssign<Mask<Fork, bool>> for Fork
Source§fn bitor_assign(&mut self, rhs: Mask<Self, bool>)
fn bitor_assign(&mut self, rhs: Mask<Self, bool>)
|=
operation. Read moreSource§impl BitOrAssign for Fork
impl BitOrAssign for Fork
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read more