pub struct TrackedEntry {
pub entry: PortEntry,
pub status: EntryStatus,
pub seen_at: Instant,
pub first_seen: Option<Instant>,
pub suspicious: Vec<SuspiciousReason>,
pub container_name: Option<String>,
pub service_name: Option<String>,
}Expand description
A PortEntry with change-tracking metadata and enrichment data.
The status field indicates whether the entry is new, unchanged,
or gone since the last scan. seen_at records when the status
was last updated.
Enrichment fields (first_seen, suspicious, container_name,
service_name) are populated lazily by the corresponding modules
after the diff step. They use Option / Vec to be zero-cost
when the corresponding feature is not active.
Fields§
§entry: PortEntryThe underlying port entry.
status: EntryStatusCurrent change status.
seen_at: InstantWhen this status was assigned.
first_seen: Option<Instant>When this connection was first observed (carried forward across scan cycles for Unchanged entries). Used for connection aging.
suspicious: Vec<SuspiciousReason>Suspicious activity reasons detected by heuristics.
container_name: Option<String>Docker/Podman container name, if the process runs inside one.
service_name: Option<String>Well-known service name for the port (e.g. “http”, “ssh”).
Trait Implementations§
Source§impl Clone for TrackedEntry
impl Clone for TrackedEntry
Source§fn clone(&self) -> TrackedEntry
fn clone(&self) -> TrackedEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more