pub struct ConnectionRecord {
pub l4proto: String,
pub local_ip: String,
pub local_port: u32,
pub remote_ip: String,
pub remote_port: u32,
pub state: ConnectionState,
pub tx_queue: u64,
pub rx_queue: u64,
pub pid: Option<u32>,
pub process_name: Option<String>,
pub netns: String,
}Expand description
Connection record.
Fields§
§l4proto: StringLayer 4 protocol.
local_ip: StringLocal IP address.
local_port: u32Local port.
remote_ip: StringRemote IP address.
remote_port: u32Remote port.
state: ConnectionStateConnection state.
tx_queue: u64TX queue size.
rx_queue: u64RX queue size.
pid: Option<u32>Process ID (if available).
process_name: Option<String>Process name (if available).
netns: StringNetwork namespace.
Trait Implementations§
Source§impl Clone for ConnectionRecord
impl Clone for ConnectionRecord
Source§fn clone(&self) -> ConnectionRecord
fn clone(&self) -> ConnectionRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 ConnectionRecord
impl Debug for ConnectionRecord
Source§impl From<ConnectRecord> for ConnectionRecord
impl From<ConnectRecord> for ConnectionRecord
Source§fn from(proto: ProtoConnectRecord) -> Self
fn from(proto: ProtoConnectRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionRecord
impl RefUnwindSafe for ConnectionRecord
impl Send for ConnectionRecord
impl Sync for ConnectionRecord
impl Unpin for ConnectionRecord
impl UnwindSafe for ConnectionRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request