pub struct TcpState {
pub ts_syn: Timestamp,
pub ts_syn_ack: Timestamp,
pub ts_ack: Timestamp,
pub rtt: Interval,
pub rtt_net: Interval,
pub rtt_user: Interval,
pub u_seq: u32,
pub d_seq: u32,
pub status: TcpStatus,
}Fields§
§ts_syn: TimestampTimestamp of the initial SYN packet.
ts_syn_ack: TimestampTimestamp of the SYN-ACK packet.
ts_ack: TimestampTimestamp of the ACK packet completing the handshake.
rtt: IntervalRound-trip time.
rtt_net: IntervalNetwork component of the RTT.
rtt_user: IntervalUser/Application component of the RTT.
u_seq: u32Uplink sequence number.
d_seq: u32Downlink sequence number.
status: TcpStatusCurrent TCP status.
Implementations§
Source§impl TcpState
impl TcpState
pub fn update<Meta: PacketMetadata>( &mut self, pkt: &Packet<'_>, _dir: PacketDirection, meta: &Meta, metrics: &FlowMetrics, )
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcpState
impl<'de> Deserialize<'de> for TcpState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for TcpState
impl Eq for TcpState
impl StructuralPartialEq for TcpState
Auto Trait Implementations§
impl Freeze for TcpState
impl RefUnwindSafe for TcpState
impl Send for TcpState
impl Sync for TcpState
impl Unpin for TcpState
impl UnsafeUnpin for TcpState
impl UnwindSafe for TcpState
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