pub struct TracedProcess<T>where
T: ProcessIdentifier,{ /* private fields */ }
Expand description
A process actively being traced. Simply a wrapper around a type with an identifiable process identifier.
Implementations§
Source§impl<T> TracedProcess<T>where
T: ProcessIdentifier,
impl<T> TracedProcess<T>where
T: ProcessIdentifier,
Sourcepub fn attach(process: T) -> Result<Self, TraceError>
pub fn attach(process: T) -> Result<Self, TraceError>
Attempt to attach from the traced process
Sourcepub fn next_frame(self) -> Result<ProcessFrame<T>, TraceError>
pub fn next_frame(self) -> Result<ProcessFrame<T>, TraceError>
wait for an untraced status consuming self and opening a process frame
Trait Implementations§
Source§impl<T> Drop for TracedProcess<T>where
T: ProcessIdentifier,
impl<T> Drop for TracedProcess<T>where
T: ProcessIdentifier,
Drop implementation that attempts to ptrace detach from the process. On failure there is a warning, but this does not ever panic.
Source§impl<T> ProcessIdentifier for TracedProcess<T>where
T: ProcessIdentifier,
impl<T> ProcessIdentifier for TracedProcess<T>where
T: ProcessIdentifier,
Auto Trait Implementations§
impl<T> Freeze for TracedProcess<T>where
T: Freeze,
impl<T> RefUnwindSafe for TracedProcess<T>where
T: RefUnwindSafe,
impl<T> Send for TracedProcess<T>where
T: Send,
impl<T> Sync for TracedProcess<T>where
T: Sync,
impl<T> Unpin for TracedProcess<T>where
T: Unpin,
impl<T> UnwindSafe for TracedProcess<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more