proc_ctl/
types.rs

1/// A process ID
2pub type Pid = u32;
3
4/// A port
5pub type Port = u16;
6
7/// A representation of a port using a specific protocol
8#[derive(Debug)]
9pub enum ProtocolPort {
10    /// A TCP port
11    Tcp(Port),
12    /// A UDP port
13    Udp(Port),
14}