pub fn diff_entries(
prev: &[TrackedEntry],
current: Vec<PortEntry>,
now: Instant,
) -> Vec<TrackedEntry>Expand description
Compute entry diffs between the previous and current scan.
Returns a merged list where:
- Entries present in
currentbut notprevareEntryStatus::New - Entries present in both are
EntryStatus::Unchanged - Entries in
prevbut notcurrentareEntryStatus::Gone
Already-gone entries from prev are dropped (no double-gone).
Identity key: (local_port, pid).