[][src]Struct pete::ptracer::Tracee

pub struct Tracee {
    pub pid: Pid,
    pub pending: Option<Signal>,
    pub stop: Stop,
    pub _not_send: PhantomData<*const ()>,
}

Tracee in ptrace-stop, with an optional pending signal.

Describes how the stopped tracee would continue if it weren't traced, and thus how to restart it to resume normal execution.

The underlying tracee is not guaranteed to exist.

Fields

pid: Pidpending: Option<Signal>stop: Stop_not_send: PhantomData<*const ()>

Implementations

impl Tracee[src]

pub fn new(pid: Pid, pending: impl Into<Option<Signal>>, stop: Stop) -> Self[src]

pub fn inject(&mut self, pending: Signal)[src]

Set a signal to deliver to the stopped process upon restart.

pub fn suppress(&mut self)[src]

Remove any signal scheduled for delivery to pid upon restart.

pub fn set_options(&mut self, options: Options) -> Result<()>[src]

Set custom tracing options on the tracee.

pub fn registers(&self) -> Result<Registers>[src]

pub fn set_registers(&mut self, regs: Registers) -> Result<()>[src]

pub fn read_memory(&mut self, addr: u64, len: usize) -> Result<Vec<u8>>[src]

pub fn read_memory_mut(&self, addr: u64, data: &mut [u8]) -> Result<usize>[src]

pub fn write_memory(&mut self, addr: u64, data: &[u8]) -> Result<usize>[src]

pub fn siginfo(&self) -> Result<Option<Siginfo>>[src]

Trait Implementations

impl Clone for Tracee[src]

impl Copy for Tracee[src]

impl Debug for Tracee[src]

impl Eq for Tracee[src]

impl PartialEq<Tracee> for Tracee[src]

impl StructuralEq for Tracee[src]

impl StructuralPartialEq for Tracee[src]

Auto Trait Implementations

impl RefUnwindSafe for Tracee

impl !Send for Tracee

impl !Sync for Tracee

impl Unpin for Tracee

impl UnwindSafe for Tracee

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.