Skip to main content

diff_entries

Function diff_entries 

Source
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:

Already-gone entries from prev are dropped (no double-gone). Identity key: (local_port, pid).