pub enum TcpStatus {
Closed,
SynSent,
SynReceived,
Established,
FinWait,
CloseWait,
Closing,
Reset,
}Variants§
Closed
Initial state, or when tracking metadata is evicted/expired.
SynSent
Client sent SYN, waiting for SYN-ACK.
SynReceived
Server sent SYN-ACK.
Established
Handshake completed (ACK received).
FinWait
One side sent a FIN.
CloseWait
The other side acknowledged the FIN.
Closing
Simultaneous close or final stages of termination.
Reset
Connection reset via RST flag.
Implementations§
Source§impl TcpStatus
impl TcpStatus
pub fn is_established(self) -> bool
pub fn is_close_in_progress(self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcpStatus
impl<'de> Deserialize<'de> for TcpStatus
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
Source§impl Ord for TcpStatus
impl Ord for TcpStatus
Source§impl PartialOrd for TcpStatus
impl PartialOrd for TcpStatus
impl Copy for TcpStatus
impl Eq for TcpStatus
impl StructuralPartialEq for TcpStatus
Auto Trait Implementations§
impl Freeze for TcpStatus
impl RefUnwindSafe for TcpStatus
impl Send for TcpStatus
impl Sync for TcpStatus
impl Unpin for TcpStatus
impl UnsafeUnpin for TcpStatus
impl UnwindSafe for TcpStatus
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