pub fn snapshot(filter: &Filter) -> Result<Vec<Connection>>Expand description
Return a snapshot of current network connections, optionally filtered.
ยงErrors
Propagates I/O errors from the platform layer: failure to read
/proc/net/* on Linux or proc_listpidinfo on macOS.