Struct linux_stats::Socket [] [src]

pub struct Socket {
    pub sl: u64,
    pub local_address: Ipv4Addr,
    pub local_port: u16,
    pub remote_address: Ipv4Addr,
    pub remote_port: u16,
    pub state: SocketState,
    pub tx_queue: u64,
    pub rx_queue: u64,
    pub timer: SocketTimerState,
    pub uid: u32,
    pub inode: u64,
}

Represents a line (socket) in output of cat /proc/net/{tcp,udp}

Fields

Trait Implementations

impl Clone for Socket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more