pub struct UnixSocketInfo {
pub inode: u64,
pub path: String,
pub socket_type: String,
pub state: String,
pub owner_pid: u32,
pub peer_pid: u32,
pub is_suspicious: bool,
}Expand description
Information about a Unix domain socket extracted from kernel memory.
Fields§
§inode: u64Inode number of the socket.
path: StringSocket path (empty for abstract sockets, @-prefixed in display).
socket_type: StringSocket type: STREAM, DGRAM, or SEQPACKET.
state: StringSocket state (e.g. UNCONNECTED, CONNECTED, LISTENING).
owner_pid: u32PID of the process that owns this socket.
peer_pid: u32PID of the peer process (0 if none).
is_suspicious: boolWhether this socket is classified as suspicious.
Trait Implementations§
Source§impl Clone for UnixSocketInfo
impl Clone for UnixSocketInfo
Source§fn clone(&self) -> UnixSocketInfo
fn clone(&self) -> UnixSocketInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnixSocketInfo
impl Debug for UnixSocketInfo
Auto Trait Implementations§
impl Freeze for UnixSocketInfo
impl RefUnwindSafe for UnixSocketInfo
impl Send for UnixSocketInfo
impl Sync for UnixSocketInfo
impl Unpin for UnixSocketInfo
impl UnsafeUnpin for UnixSocketInfo
impl UnwindSafe for UnixSocketInfo
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