pub struct ConnectionInfo {
pub protocol: Protocol,
pub local_addr: String,
pub local_port: u16,
pub remote_addr: String,
pub remote_port: u16,
pub state: ConnectionState,
pub pid: Option<u64>,
}Expand description
Information about a network connection extracted from kernel memory.
Fields§
§protocol: ProtocolNetwork protocol.
local_addr: StringLocal IP address as string.
local_port: u16Local port.
remote_addr: StringRemote IP address as string.
remote_port: u16Remote port.
state: ConnectionStateConnection state (TCP only).
pid: Option<u64>PID of the owning process, if determinable.
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
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 ConnectionInfo
impl Debug for ConnectionInfo
Source§impl IntoForensicEvents for ConnectionInfo
impl IntoForensicEvents for ConnectionInfo
Source§fn into_forensic_events(self) -> Vec<ForensicEvent>
fn into_forensic_events(self) -> Vec<ForensicEvent>
Consume this value and produce forensic events.
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnsafeUnpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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