[−][src]Struct pete::ptracer::Tracee
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: Pid
pending: 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,