pub struct PortEntry {
pub protocol: Protocol,
pub local_addr: SocketAddr,
pub remote_addr: Option<SocketAddr>,
pub state: ConnectionState,
pub process: ProcessInfo,
}Expand description
A single network port entry.
This is the fundamental data unit — one row in the port table.
Identity key for change tracking is (local_port, pid).
Fields§
§protocol: ProtocolTransport protocol (TCP or UDP).
local_addr: SocketAddrLocal socket address (ip:port).
remote_addr: Option<SocketAddr>Remote socket address, if connected.
state: ConnectionStateConnection state (LISTEN, ESTABLISHED, etc.).
process: ProcessInfoProcess that owns this connection.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortEntry
impl RefUnwindSafe for PortEntry
impl Send for PortEntry
impl Sync for PortEntry
impl Unpin for PortEntry
impl UnsafeUnpin for PortEntry
impl UnwindSafe for PortEntry
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