pub struct ProcessSnapshot {
pub processes: Vec<ProcessEntry>,
pub scanned_at: SystemTime,
}Expand description
Snapshot of claude’s descendant processes at one point in time.
Always succeeds - failures (sysinfo errors, process gone) collapse
to an empty processes vec.
Fields§
§processes: Vec<ProcessEntry>Sorted descendants of the supplied claude_pid. Sort order:
memory descending - most resource-hungry processes first so
a top-N display surfaces the interesting ones.
scanned_at: SystemTimeWhen the scan ran. The walk compares against this to decide whether to take a fresh scan.
Trait Implementations§
Source§impl Clone for ProcessSnapshot
impl Clone for ProcessSnapshot
Source§impl Debug for ProcessSnapshot
impl Debug for ProcessSnapshot
Source§impl<'de> Deserialize<'de> for ProcessSnapshot
impl<'de> Deserialize<'de> for ProcessSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProcessSnapshot
impl RefUnwindSafe for ProcessSnapshot
impl Send for ProcessSnapshot
impl Sync for ProcessSnapshot
impl Unpin for ProcessSnapshot
impl UnsafeUnpin for ProcessSnapshot
impl UnwindSafe for ProcessSnapshot
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