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
sl: u64
local_address: Ipv4Addr
local_port: u16
remote_address: Ipv4Addr
remote_port: u16
state: SocketState
tx_queue: u64
rx_queue: u64
timer: SocketTimerState
uid: u32
inode: u64
Trait Implementations
impl Clone for Socket[src]
fn clone(&self) -> Socket
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more