Struct nix::sys::ptrace::Options [−]
pub struct Options { /* fields omitted */ }Ptrace options used in conjunction with the PTRACE_SETOPTIONS request.
See man ptrace for more details.
Methods
impl Options
impl Optionspub const PTRACE_O_TRACESYSGOOD: Options
PTRACE_O_TRACESYSGOOD: Options = Options{bits: libc::PTRACE_O_TRACESYSGOOD,}
When delivering system call traps set a bit to allow tracer to distinguish between normal stops or syscall stops. May not work on all systems.
pub const PTRACE_O_TRACEFORK: Options
PTRACE_O_TRACEFORK: Options = Options{bits: libc::PTRACE_O_TRACEFORK,}
Stop tracee at next fork and start tracing the forked process.
pub const PTRACE_O_TRACEVFORK: Options
PTRACE_O_TRACEVFORK: Options = Options{bits: libc::PTRACE_O_TRACEVFORK,}
Stop tracee at next vfork call and trace the vforked process.
pub const PTRACE_O_TRACECLONE: Options
PTRACE_O_TRACECLONE: Options = Options{bits: libc::PTRACE_O_TRACECLONE,}
Stop tracee at next clone call and trace the cloned process.
pub const PTRACE_O_TRACEEXEC: Options
PTRACE_O_TRACEEXEC: Options = Options{bits: libc::PTRACE_O_TRACEEXEC,}
Stop tracee at next execve call.
pub const PTRACE_O_TRACEVFORKDONE: Options
PTRACE_O_TRACEVFORKDONE: Options = Options{bits: libc::PTRACE_O_TRACEVFORKDONE,}
Stop tracee at vfork completion.
pub const PTRACE_O_TRACEEXIT: Options
PTRACE_O_TRACEEXIT: Options = Options{bits: libc::PTRACE_O_TRACEEXIT,}
Stop tracee at next exit call. Stops before exit commences allowing tracer to see location of exit and register states.
pub const PTRACE_O_TRACESECCOMP: Options
PTRACE_O_TRACESECCOMP: Options = Options{bits: libc::PTRACE_O_TRACESECCOMP,}
Stop tracee when a SECCOMP_RET_TRACE rule is triggered. See man seccomp for more
details.
pub const PTRACE_O_EXITKILL: Options
PTRACE_O_EXITKILL: Options = Options{bits: libc::PTRACE_O_EXITKILL,}
Send a SIGKILL to the tracee if the tracer exits. This is useful for ptrace jailers to prevent tracees from escaping their control.
pub fn empty() -> Options
pub fn empty() -> OptionsReturns an empty set of flags.
pub fn all() -> Options
pub fn all() -> OptionsReturns the set containing all flags.
pub fn bits(&self) -> c_int
pub fn bits(&self) -> c_intReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_int) -> Option<Options>
pub fn from_bits(bits: c_int) -> Option<Options>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_int) -> Options
pub fn from_bits_truncate(bits: c_int) -> OptionsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: Options) -> bool
pub fn intersects(&self, other: Options) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: Options) -> bool
pub fn contains(&self, other: Options) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: Options)
pub fn insert(&mut self, other: Options)Inserts the specified flags in-place.
pub fn remove(&mut self, other: Options)
pub fn remove(&mut self, other: Options)Removes the specified flags in-place.
pub fn toggle(&mut self, other: Options)
pub fn toggle(&mut self, other: Options)Toggles the specified flags in-place.
pub fn set(&mut self, other: Options, value: bool)
pub fn set(&mut self, other: Options, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for Options
impl Copy for Optionsimpl PartialEq for Options
impl PartialEq for Optionsfn eq(&self, other: &Options) -> bool
fn eq(&self, other: &Options) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Options) -> bool
fn ne(&self, other: &Options) -> boolThis method tests for !=.
impl Eq for Options
impl Eq for Optionsimpl Clone for Options
impl Clone for Optionsfn clone(&self) -> Options
fn clone(&self) -> OptionsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for Options
impl PartialOrd for Optionsfn partial_cmp(&self, other: &Options) -> Option<Ordering>
fn partial_cmp(&self, other: &Options) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Options) -> bool
fn lt(&self, other: &Options) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Options) -> bool
fn le(&self, other: &Options) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Options) -> bool
fn gt(&self, other: &Options) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Options) -> bool
fn ge(&self, other: &Options) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Options
impl Ord for Optionsfn cmp(&self, other: &Options) -> Ordering
fn cmp(&self, other: &Options) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Options
impl Hash for Optionsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Options
impl Debug for Optionsimpl Binary for Options
impl Binary for Optionsimpl Octal for Options
impl Octal for Optionsimpl LowerHex for Options
impl LowerHex for Optionsimpl UpperHex for Options
impl UpperHex for Optionsimpl BitOr for Options
impl BitOr for Optionstype Output = Options
The resulting type after applying the | operator.
fn bitor(self, other: Options) -> Options
fn bitor(self, other: Options) -> OptionsReturns the union of the two sets of flags.
impl BitOrAssign for Options
impl BitOrAssign for Optionsfn bitor_assign(&mut self, other: Options)
fn bitor_assign(&mut self, other: Options)Adds the set of flags.
impl BitXor for Options
impl BitXor for Optionstype Output = Options
The resulting type after applying the ^ operator.
fn bitxor(self, other: Options) -> Options
fn bitxor(self, other: Options) -> OptionsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for Options
impl BitXorAssign for Optionsfn bitxor_assign(&mut self, other: Options)
fn bitxor_assign(&mut self, other: Options)Toggles the set of flags.
impl BitAnd for Options
impl BitAnd for Optionstype Output = Options
The resulting type after applying the & operator.
fn bitand(self, other: Options) -> Options
fn bitand(self, other: Options) -> OptionsReturns the intersection between the two sets of flags.
impl BitAndAssign for Options
impl BitAndAssign for Optionsfn bitand_assign(&mut self, other: Options)
fn bitand_assign(&mut self, other: Options)Disables all flags disabled in the set.
impl Sub for Options
impl Sub for Optionstype Output = Options
The resulting type after applying the - operator.
fn sub(self, other: Options) -> Options
fn sub(self, other: Options) -> OptionsReturns the set difference of the two sets of flags.
impl SubAssign for Options
impl SubAssign for Optionsfn sub_assign(&mut self, other: Options)
fn sub_assign(&mut self, other: Options)Disables all flags enabled in the set.
impl Not for Options
impl Not for Optionstype Output = Options
The resulting type after applying the ! operator.
fn not(self) -> Options
fn not(self) -> OptionsReturns the complement of this set of flags.
impl Extend<Options> for Options
impl Extend<Options> for Optionsfn extend<T: IntoIterator<Item = Options>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Options>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<Options> for Options
impl FromIterator<Options> for Optionsfn from_iter<T: IntoIterator<Item = Options>>(iterator: T) -> Options
fn from_iter<T: IntoIterator<Item = Options>>(iterator: T) -> OptionsCreates a value from an iterator. Read more