pub enum TcpState {
Closed,
SynSent,
SynReceived,
Established,
FinWait,
CloseWait,
Closing,
Reset,
Unknown,
}Variants§
Closed
Initial state, or when tracking metadata is evicted/expired.
SynSent
Client sent SYN, waiting for SYN-ACK. Crucial for detecting SYN floods or failed connections.
SynReceived
Server sent SYN-ACK. The handshake is partially complete.
Established
Handshake completed (ACK received). Data transfer phase.
FinWait
One side sent a FIN. Passive monitor infers this when seeing the first FIN.
CloseWait
The other side acknowledged the FIN.
Closing
Simultaneous close or final stages of termination.
Reset
Connection reset via RST flag.
Unknown
State cannot be inferred from the observed packet sequence.
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 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