netsock 0.7.0

Cross-platform library for network sockets information
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

/// Basic process metadata associated with a socket.
#[derive(Eq, PartialEq, Hash, Debug, Clone)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct Process {
    /// Process identifier.
    pub pid: u32,
    /// Process name as reported by the operating system.
    pub name: String,
}