1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// A process ID
pub type Pid = u32;

/// A port
pub type Port = u16;

/// A representation of a port using a specific protocol
#[derive(Debug)]
pub enum ProtocolPort {
    /// A TCP port
    Tcp(Port),
    /// A UDP port
    Udp(Port),
}