Struct linux_stats::Socket
source · 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,
}
Expand description
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§
Auto Trait Implementations§
impl RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnwindSafe for Socket
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more