pub struct PortBinding {
pub protocol: Protocol,
pub local_addr: Option<IpAddr>,
pub local_port: u16,
pub state: Option<String>,
pub pid: Option<u32>,
pub process: Option<ProcessInfo>,
pub inode: Option<u64>,
}Expand description
Listening socket binding information.
Fields§
§protocol: ProtocolProtocol for the socket.
local_addr: Option<IpAddr>Local address (None if unknown).
local_port: u16Local port for the socket.
state: Option<String>Socket state (e.g., “listen” for TCP).
pid: Option<u32>Owning process ID (None if attribution not available).
process: Option<ProcessInfo>Owning process info (best-effort).
inode: Option<u64>Socket inode when available (Linux-only).
Trait Implementations§
Source§impl Clone for PortBinding
impl Clone for PortBinding
Source§fn clone(&self) -> PortBinding
fn clone(&self) -> PortBinding
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 PortBinding
impl Debug for PortBinding
Auto Trait Implementations§
impl Freeze for PortBinding
impl RefUnwindSafe for PortBinding
impl Send for PortBinding
impl Sync for PortBinding
impl Unpin for PortBinding
impl UnsafeUnpin for PortBinding
impl UnwindSafe for PortBinding
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