pub struct SpawnFlags { /* private fields */ }
Implementations§
Source§impl SpawnFlags
impl SpawnFlags
pub const DEFAULT: SpawnFlags
pub const LEAVE_DESCRIPTORS_OPEN: SpawnFlags
pub const DO_NOT_REAP_CHILD: SpawnFlags
pub const SEARCH_PATH: SpawnFlags
pub const STDOUT_TO_DEV_NULL: SpawnFlags
pub const STDERR_TO_DEV_NULL: SpawnFlags
pub const CHILD_INHERITS_STDIN: SpawnFlags
pub const FILE_AND_ARGV_ZERO: SpawnFlags
pub const SEARCH_PATH_FROM_ENVP: SpawnFlags
pub const CLOEXEC_PIPES: SpawnFlags
Sourcepub const fn empty() -> SpawnFlags
pub const fn empty() -> SpawnFlags
Returns an empty set of flags
Sourcepub const fn all() -> SpawnFlags
pub const fn all() -> SpawnFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<SpawnFlags>
pub fn from_bits(bits: u32) -> Option<SpawnFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> SpawnFlags
pub const fn from_bits_truncate(bits: u32) -> SpawnFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> SpawnFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> SpawnFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: SpawnFlags) -> bool
pub const fn intersects(&self, other: SpawnFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: SpawnFlags) -> bool
pub const fn contains(&self, other: SpawnFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: SpawnFlags)
pub fn insert(&mut self, other: SpawnFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: SpawnFlags)
pub fn remove(&mut self, other: SpawnFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: SpawnFlags)
pub fn toggle(&mut self, other: SpawnFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: SpawnFlags, value: bool)
pub fn set(&mut self, other: SpawnFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for SpawnFlags
impl Binary for SpawnFlags
Source§impl BitAnd for SpawnFlags
impl BitAnd for SpawnFlags
Source§fn bitand(self, other: SpawnFlags) -> SpawnFlags
fn bitand(self, other: SpawnFlags) -> SpawnFlags
Returns the intersection between the two sets of flags.
Source§type Output = SpawnFlags
type Output = SpawnFlags
&
operator.Source§impl BitAndAssign for SpawnFlags
impl BitAndAssign for SpawnFlags
Source§fn bitand_assign(&mut self, other: SpawnFlags)
fn bitand_assign(&mut self, other: SpawnFlags)
Disables all flags disabled in the set.
Source§impl BitOr for SpawnFlags
impl BitOr for SpawnFlags
Source§fn bitor(self, other: SpawnFlags) -> SpawnFlags
fn bitor(self, other: SpawnFlags) -> SpawnFlags
Returns the union of the two sets of flags.
Source§type Output = SpawnFlags
type Output = SpawnFlags
|
operator.Source§impl BitOrAssign for SpawnFlags
impl BitOrAssign for SpawnFlags
Source§fn bitor_assign(&mut self, other: SpawnFlags)
fn bitor_assign(&mut self, other: SpawnFlags)
Adds the set of flags.
Source§impl BitXor for SpawnFlags
impl BitXor for SpawnFlags
Source§fn bitxor(self, other: SpawnFlags) -> SpawnFlags
fn bitxor(self, other: SpawnFlags) -> SpawnFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = SpawnFlags
type Output = SpawnFlags
^
operator.Source§impl BitXorAssign for SpawnFlags
impl BitXorAssign for SpawnFlags
Source§fn bitxor_assign(&mut self, other: SpawnFlags)
fn bitxor_assign(&mut self, other: SpawnFlags)
Toggles the set of flags.
Source§impl Clone for SpawnFlags
impl Clone for SpawnFlags
Source§fn clone(&self) -> SpawnFlags
fn clone(&self) -> SpawnFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SpawnFlags
impl Debug for SpawnFlags
Source§impl Extend<SpawnFlags> for SpawnFlags
impl Extend<SpawnFlags> for SpawnFlags
Source§fn extend<T: IntoIterator<Item = SpawnFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SpawnFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<SpawnFlags> for SpawnFlags
impl FromIterator<SpawnFlags> for SpawnFlags
Source§fn from_iter<T: IntoIterator<Item = SpawnFlags>>(iterator: T) -> SpawnFlags
fn from_iter<T: IntoIterator<Item = SpawnFlags>>(iterator: T) -> SpawnFlags
Source§impl Hash for SpawnFlags
impl Hash for SpawnFlags
Source§impl LowerHex for SpawnFlags
impl LowerHex for SpawnFlags
Source§impl Not for SpawnFlags
impl Not for SpawnFlags
Source§fn not(self) -> SpawnFlags
fn not(self) -> SpawnFlags
Returns the complement of this set of flags.
Source§type Output = SpawnFlags
type Output = SpawnFlags
!
operator.Source§impl Octal for SpawnFlags
impl Octal for SpawnFlags
Source§impl Ord for SpawnFlags
impl Ord for SpawnFlags
Source§fn cmp(&self, other: &SpawnFlags) -> Ordering
fn cmp(&self, other: &SpawnFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SpawnFlags
impl PartialEq for SpawnFlags
Source§impl PartialOrd for SpawnFlags
impl PartialOrd for SpawnFlags
Source§impl Sub for SpawnFlags
impl Sub for SpawnFlags
Source§fn sub(self, other: SpawnFlags) -> SpawnFlags
fn sub(self, other: SpawnFlags) -> SpawnFlags
Returns the set difference of the two sets of flags.
Source§type Output = SpawnFlags
type Output = SpawnFlags
-
operator.Source§impl SubAssign for SpawnFlags
impl SubAssign for SpawnFlags
Source§fn sub_assign(&mut self, other: SpawnFlags)
fn sub_assign(&mut self, other: SpawnFlags)
Disables all flags enabled in the set.