Struct libuv::handles::process::ProcessFlags
source · pub struct ProcessFlags { /* private fields */ }
Expand description
Flags to be set on the flags field of ProcessOptions.
Implementations§
source§impl ProcessFlags
impl ProcessFlags
sourcepub const SETUID: ProcessFlags = _
pub const SETUID: ProcessFlags = _
Set the child process’ user id.
sourcepub const SETGID: ProcessFlags = _
pub const SETGID: ProcessFlags = _
Set the child process’ group id.
sourcepub const WINDOWS_VERBATIM_ARGUMENTS: ProcessFlags = _
pub const WINDOWS_VERBATIM_ARGUMENTS: ProcessFlags = _
Do not wrap any arguments in quotes, or perform any other escaping, when converting the argument list into a command line string. This option is only meaningful on Windows systems. On Unix it is silently ignored.
sourcepub const DETACHED: ProcessFlags = _
pub const DETACHED: ProcessFlags = _
Spawn the child process in a detached state - this will make it a process group leader, and will effectively enable the child to keep running after the parent exits. Note that the child process will still keep the parent’s event loop alive unless the parent process calls uv_unref() on the child’s process handle.
sourcepub const WINDOWS_HIDE: ProcessFlags = _
pub const WINDOWS_HIDE: ProcessFlags = _
Hide the subprocess window that would normally be created. This option is only meaningful on Windows systems. On Unix it is silently ignored.
sourcepub const WINDOWS_HIDE_CONSOLE: ProcessFlags = _
pub const WINDOWS_HIDE_CONSOLE: ProcessFlags = _
Hide the subprocess console window that would normally be created. This option is only meaningful on Windows systems. On Unix it is silently ignored.
sourcepub const WINDOWS_HIDE_GUI: ProcessFlags = _
pub const WINDOWS_HIDE_GUI: ProcessFlags = _
Hide the subprocess GUI window that would normally be created. This option is only meaningful on Windows systems. On Unix it is silently ignored.
sourcepub const WINDOWS_FILE_PATH_EXACT_NAME: ProcessFlags = _
pub const WINDOWS_FILE_PATH_EXACT_NAME: ProcessFlags = _
On Windows, if the path to the program to execute has a directory component, search for the exact file name before trying variants with extensions like ‘.exe’ or ‘.cmd’.
sourcepub const fn empty() -> ProcessFlags
pub const fn empty() -> ProcessFlags
Returns an empty set of flags
sourcepub const fn all() -> ProcessFlags
pub const fn all() -> ProcessFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<ProcessFlags>
pub fn from_bits(bits: u32) -> Option<ProcessFlags>
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) -> ProcessFlags
pub const fn from_bits_truncate(bits: u32) -> ProcessFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> ProcessFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> ProcessFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: ProcessFlags) -> bool
pub const fn intersects(&self, other: ProcessFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: ProcessFlags) -> bool
pub const fn contains(&self, other: ProcessFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: ProcessFlags)
pub fn insert(&mut self, other: ProcessFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: ProcessFlags)
pub fn remove(&mut self, other: ProcessFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: ProcessFlags)
pub fn toggle(&mut self, other: ProcessFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: ProcessFlags, value: bool)
pub fn set(&mut self, other: ProcessFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
source§impl Binary for ProcessFlags
impl Binary for ProcessFlags
source§impl BitAnd for ProcessFlags
impl BitAnd for ProcessFlags
source§fn bitand(self, other: ProcessFlags) -> ProcessFlags
fn bitand(self, other: ProcessFlags) -> ProcessFlags
Returns the intersection between the two sets of flags.
§type Output = ProcessFlags
type Output = ProcessFlags
&
operator.source§impl BitAndAssign for ProcessFlags
impl BitAndAssign for ProcessFlags
source§fn bitand_assign(&mut self, other: ProcessFlags)
fn bitand_assign(&mut self, other: ProcessFlags)
Disables all flags disabled in the set.
source§impl BitOr for ProcessFlags
impl BitOr for ProcessFlags
source§fn bitor(self, other: ProcessFlags) -> ProcessFlags
fn bitor(self, other: ProcessFlags) -> ProcessFlags
Returns the union of the two sets of flags.
§type Output = ProcessFlags
type Output = ProcessFlags
|
operator.source§impl BitOrAssign for ProcessFlags
impl BitOrAssign for ProcessFlags
source§fn bitor_assign(&mut self, other: ProcessFlags)
fn bitor_assign(&mut self, other: ProcessFlags)
Adds the set of flags.
source§impl BitXor for ProcessFlags
impl BitXor for ProcessFlags
source§fn bitxor(self, other: ProcessFlags) -> ProcessFlags
fn bitxor(self, other: ProcessFlags) -> ProcessFlags
Returns the left flags, but with all the right flags toggled.
§type Output = ProcessFlags
type Output = ProcessFlags
^
operator.source§impl BitXorAssign for ProcessFlags
impl BitXorAssign for ProcessFlags
source§fn bitxor_assign(&mut self, other: ProcessFlags)
fn bitxor_assign(&mut self, other: ProcessFlags)
Toggles the set of flags.
source§impl Clone for ProcessFlags
impl Clone for ProcessFlags
source§fn clone(&self) -> ProcessFlags
fn clone(&self) -> ProcessFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProcessFlags
impl Debug for ProcessFlags
source§impl Extend<ProcessFlags> for ProcessFlags
impl Extend<ProcessFlags> for ProcessFlags
source§fn extend<T: IntoIterator<Item = ProcessFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ProcessFlags>>(&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<ProcessFlags> for ProcessFlags
impl FromIterator<ProcessFlags> for ProcessFlags
source§fn from_iter<T: IntoIterator<Item = ProcessFlags>>(iterator: T) -> ProcessFlags
fn from_iter<T: IntoIterator<Item = ProcessFlags>>(iterator: T) -> ProcessFlags
source§impl Hash for ProcessFlags
impl Hash for ProcessFlags
source§impl LowerHex for ProcessFlags
impl LowerHex for ProcessFlags
source§impl Not for ProcessFlags
impl Not for ProcessFlags
source§fn not(self) -> ProcessFlags
fn not(self) -> ProcessFlags
Returns the complement of this set of flags.
§type Output = ProcessFlags
type Output = ProcessFlags
!
operator.source§impl Octal for ProcessFlags
impl Octal for ProcessFlags
source§impl Ord for ProcessFlags
impl Ord for ProcessFlags
source§fn cmp(&self, other: &ProcessFlags) -> Ordering
fn cmp(&self, other: &ProcessFlags) -> 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 ProcessFlags
impl PartialEq for ProcessFlags
source§fn eq(&self, other: &ProcessFlags) -> bool
fn eq(&self, other: &ProcessFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProcessFlags
impl PartialOrd for ProcessFlags
source§fn partial_cmp(&self, other: &ProcessFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ProcessFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for ProcessFlags
impl Sub for ProcessFlags
source§fn sub(self, other: ProcessFlags) -> ProcessFlags
fn sub(self, other: ProcessFlags) -> ProcessFlags
Returns the set difference of the two sets of flags.
§type Output = ProcessFlags
type Output = ProcessFlags
-
operator.source§impl SubAssign for ProcessFlags
impl SubAssign for ProcessFlags
source§fn sub_assign(&mut self, other: ProcessFlags)
fn sub_assign(&mut self, other: ProcessFlags)
Disables all flags enabled in the set.