pub struct Connection {Show 15 fields
pub id: u64,
pub key: ConnectionKey,
pub state: ConnectionState,
pub client_is_a: bool,
pub client_isn: u32,
pub server_isn: u32,
pub start_time: i64,
pub last_activity: i64,
pub end_time: Option<i64>,
pub packets_to_server: u32,
pub packets_to_client: u32,
pub bytes_to_server: u64,
pub bytes_to_client: u64,
pub first_frame: u64,
pub last_frame: u64,
}Expand description
A tracked TCP connection.
Fields§
§id: u64§key: ConnectionKey§state: ConnectionState§client_is_a: boolWhich endpoint is the client (sent SYN). True if ip_a/port_a is client.
client_isn: u32Initial sequence numbers.
server_isn: u32§start_time: i64Timing (microseconds).
last_activity: i64§end_time: Option<i64>§packets_to_server: u32Packet counts.
packets_to_client: u32§bytes_to_server: u64Byte counts (payload only).
bytes_to_client: u64§first_frame: u64Frame references.
last_frame: u64Implementations§
Source§impl Connection
impl Connection
Sourcepub fn client_port(&self) -> u16
pub fn client_port(&self) -> u16
Get client port.
Sourcepub fn server_port(&self) -> u16
pub fn server_port(&self) -> u16
Get server port.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
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 moreAuto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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