Struct lldb::LaunchFlags
source · [−]#[repr(C)]pub struct LaunchFlags { /* private fields */ }
Implementations
sourceimpl LaunchFlags
impl LaunchFlags
sourcepub const EXEC: LaunchFlags = Self{ bits: 1,}
pub const EXEC: LaunchFlags = Self{ bits: 1,}
Exec when launching and turn the calling process into a new process.
sourcepub const DEBUG: LaunchFlags = Self{ bits: 2,}
pub const DEBUG: LaunchFlags = Self{ bits: 2,}
Stop as soon as the process launches to allow the process to be debugged.
sourcepub const STOP_AT_ENTRY: LaunchFlags = Self{ bits: 4,}
pub const STOP_AT_ENTRY: LaunchFlags = Self{ bits: 4,}
Stop at the program entry point instead of auto-continuing when launching or attaching at entry point.
sourcepub const DISABLE_ASLR: LaunchFlags = Self{ bits: 8,}
pub const DISABLE_ASLR: LaunchFlags = Self{ bits: 8,}
Disable address space layout randomization (ASLR).
sourcepub const DISABLE_STDIO: LaunchFlags = Self{ bits: 16,}
pub const DISABLE_STDIO: LaunchFlags = Self{ bits: 16,}
Disable stdio for the inferior process (e.g. for a GUI app).
sourcepub const LAUNCH_IN_TTY: LaunchFlags = Self{ bits: 32,}
pub const LAUNCH_IN_TTY: LaunchFlags = Self{ bits: 32,}
Launch the process in a new TTY if supported by the host.
sourcepub const LAUNCH_IN_SHELL: LaunchFlags = Self{ bits: 64,}
pub const LAUNCH_IN_SHELL: LaunchFlags = Self{ bits: 64,}
Launch the process inside a shell to get shell expansion.
sourcepub const LAUNCH_IN_SEPARATE_PROCESS_GROUP: LaunchFlags = Self{ bits: 128,}
pub const LAUNCH_IN_SEPARATE_PROCESS_GROUP: LaunchFlags = Self{ bits: 128,}
Launch the process in a separate process group.
sourcepub const DONT_SET_EXIT_STATUS: LaunchFlags = Self{ bits: 256,}
pub const DONT_SET_EXIT_STATUS: LaunchFlags = Self{ bits: 256,}
If you are going to hand the process off (e.g. to debugserver), set this flag so that lldb and the handee don’t race to set its exit status.
sourcepub const DETACH_ON_ERRROR: LaunchFlags = Self{ bits: 512,}
pub const DETACH_ON_ERRROR: LaunchFlags = Self{ bits: 512,}
If set, then the client stub should detach rather than killing the debugee.
sourcepub const SHELL_EXPAND_ARGUMENTS: LaunchFlags = Self{ bits: 1024,}
pub const SHELL_EXPAND_ARGUMENTS: LaunchFlags = Self{ bits: 1024,}
Perform shell-style argument expansion.
sourcepub const CLOSE_TTY_ON_EXIT: LaunchFlags = Self{ bits: 2048,}
pub const CLOSE_TTY_ON_EXIT: LaunchFlags = Self{ bits: 2048,}
Close the open TTY on exit.
sourcepub const fn empty() -> LaunchFlags
pub const fn empty() -> LaunchFlags
Returns an empty set of flags.
sourcepub const fn all() -> LaunchFlags
pub const fn all() -> LaunchFlags
Returns the set containing all flags.
sourcepub const fn from_bits(bits: u32) -> Option<LaunchFlags>
pub const fn from_bits(bits: u32) -> Option<LaunchFlags>
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) -> LaunchFlags
pub const fn from_bits_truncate(bits: u32) -> LaunchFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> LaunchFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> LaunchFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: LaunchFlags) -> bool
pub const fn intersects(&self, other: LaunchFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: LaunchFlags) -> bool
pub const fn contains(&self, other: LaunchFlags) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: LaunchFlags)
pub fn insert(&mut self, other: LaunchFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: LaunchFlags)
pub fn remove(&mut self, other: LaunchFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: LaunchFlags)
pub fn toggle(&mut self, other: LaunchFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: LaunchFlags, value: bool)
pub fn set(&mut self, other: LaunchFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: LaunchFlags) -> LaunchFlags
pub const fn intersection(self, other: LaunchFlags) -> LaunchFlags
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: LaunchFlags) -> LaunchFlags
pub const fn union(self, other: LaunchFlags) -> LaunchFlags
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(self, other: LaunchFlags) -> LaunchFlags
pub const fn difference(self, other: LaunchFlags) -> LaunchFlags
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(self, other: LaunchFlags) -> LaunchFlags
pub const fn symmetric_difference(self, other: LaunchFlags) -> LaunchFlags
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> LaunchFlags
pub const fn complement(self) -> LaunchFlags
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations
sourceimpl Binary for LaunchFlags
impl Binary for LaunchFlags
sourceimpl BitAnd<LaunchFlags> for LaunchFlags
impl BitAnd<LaunchFlags> for LaunchFlags
sourcefn bitand(self, other: LaunchFlags) -> LaunchFlags
fn bitand(self, other: LaunchFlags) -> LaunchFlags
Returns the intersection between the two sets of flags.
type Output = LaunchFlags
type Output = LaunchFlags
&
operator.sourceimpl BitAndAssign<LaunchFlags> for LaunchFlags
impl BitAndAssign<LaunchFlags> for LaunchFlags
sourcefn bitand_assign(&mut self, other: LaunchFlags)
fn bitand_assign(&mut self, other: LaunchFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<LaunchFlags> for LaunchFlags
impl BitOr<LaunchFlags> for LaunchFlags
sourcefn bitor(self, other: LaunchFlags) -> LaunchFlags
fn bitor(self, other: LaunchFlags) -> LaunchFlags
Returns the union of the two sets of flags.
type Output = LaunchFlags
type Output = LaunchFlags
|
operator.sourceimpl BitOrAssign<LaunchFlags> for LaunchFlags
impl BitOrAssign<LaunchFlags> for LaunchFlags
sourcefn bitor_assign(&mut self, other: LaunchFlags)
fn bitor_assign(&mut self, other: LaunchFlags)
Adds the set of flags.
sourceimpl BitXor<LaunchFlags> for LaunchFlags
impl BitXor<LaunchFlags> for LaunchFlags
sourcefn bitxor(self, other: LaunchFlags) -> LaunchFlags
fn bitxor(self, other: LaunchFlags) -> LaunchFlags
Returns the left flags, but with all the right flags toggled.
type Output = LaunchFlags
type Output = LaunchFlags
^
operator.sourceimpl BitXorAssign<LaunchFlags> for LaunchFlags
impl BitXorAssign<LaunchFlags> for LaunchFlags
sourcefn bitxor_assign(&mut self, other: LaunchFlags)
fn bitxor_assign(&mut self, other: LaunchFlags)
Toggles the set of flags.
sourceimpl Clone for LaunchFlags
impl Clone for LaunchFlags
sourcefn clone(&self) -> LaunchFlags
fn clone(&self) -> LaunchFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for LaunchFlags
impl Debug for LaunchFlags
sourceimpl Extend<LaunchFlags> for LaunchFlags
impl Extend<LaunchFlags> for LaunchFlags
sourcefn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = LaunchFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = LaunchFlags>,
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)sourceimpl FromIterator<LaunchFlags> for LaunchFlags
impl FromIterator<LaunchFlags> for LaunchFlags
sourcefn from_iter<T>(iterator: T) -> LaunchFlagswhere
T: IntoIterator<Item = LaunchFlags>,
fn from_iter<T>(iterator: T) -> LaunchFlagswhere
T: IntoIterator<Item = LaunchFlags>,
sourceimpl Hash for LaunchFlags
impl Hash for LaunchFlags
sourceimpl LowerHex for LaunchFlags
impl LowerHex for LaunchFlags
sourceimpl Not for LaunchFlags
impl Not for LaunchFlags
sourcefn not(self) -> LaunchFlags
fn not(self) -> LaunchFlags
Returns the complement of this set of flags.
type Output = LaunchFlags
type Output = LaunchFlags
!
operator.sourceimpl Octal for LaunchFlags
impl Octal for LaunchFlags
sourceimpl Ord for LaunchFlags
impl Ord for LaunchFlags
sourcefn cmp(&self, other: &LaunchFlags) -> Ordering
fn cmp(&self, other: &LaunchFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<LaunchFlags> for LaunchFlags
impl PartialEq<LaunchFlags> for LaunchFlags
sourcefn eq(&self, other: &LaunchFlags) -> bool
fn eq(&self, other: &LaunchFlags) -> bool
sourceimpl PartialOrd<LaunchFlags> for LaunchFlags
impl PartialOrd<LaunchFlags> for LaunchFlags
sourcefn partial_cmp(&self, other: &LaunchFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &LaunchFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Sub<LaunchFlags> for LaunchFlags
impl Sub<LaunchFlags> for LaunchFlags
sourcefn sub(self, other: LaunchFlags) -> LaunchFlags
fn sub(self, other: LaunchFlags) -> LaunchFlags
Returns the set difference of the two sets of flags.
type Output = LaunchFlags
type Output = LaunchFlags
-
operator.sourceimpl SubAssign<LaunchFlags> for LaunchFlags
impl SubAssign<LaunchFlags> for LaunchFlags
sourcefn sub_assign(&mut self, other: LaunchFlags)
fn sub_assign(&mut self, other: LaunchFlags)
Disables all flags enabled in the set.