pub struct StrayProcess {
pub pid: u32,
pub start_time: u64,
pub layer: StrayLayer,
}Expand description
A process discovered by discover_stray_devflow_processes: its pid,
the start time recorded at discovery time, and which layer matched it.
The recorded start_time is what lets a later caller re-confirm this is
still the same process — via is_same_process — immediately before
acting on it, closing the check-then-act window between discovery and
signalling (999.47’s “Related TOCTOU”).
Fields§
§pid: u32The discovered process’s pid.
start_time: u64The pid’s recorded start time (/proc/<pid>/stat field 22), captured
at discovery time for later identity re-confirmation.
layer: StrayLayerWhich structural matcher identified this process.
Trait Implementations§
Source§impl Clone for StrayProcess
impl Clone for StrayProcess
Source§fn clone(&self) -> StrayProcess
fn clone(&self) -> StrayProcess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StrayProcess
Source§impl Debug for StrayProcess
impl Debug for StrayProcess
impl Eq for StrayProcess
Source§impl PartialEq for StrayProcess
impl PartialEq for StrayProcess
impl StructuralPartialEq for StrayProcess
Auto Trait Implementations§
impl Freeze for StrayProcess
impl RefUnwindSafe for StrayProcess
impl Send for StrayProcess
impl Sync for StrayProcess
impl Unpin for StrayProcess
impl UnsafeUnpin for StrayProcess
impl UnwindSafe for StrayProcess
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