pub enum ConnectionState {
Listen,
Established,
TimeWait,
CloseWait,
SynSent,
SynRecv,
FinWait1,
FinWait2,
Closing,
LastAck,
Closed,
Unknown,
}Expand description
TCP connection state.
Matches standard TCP FSM states plus Unknown for UDP or unparsable states.
Display format uses uppercase with underscores (e.g. TIME_WAIT).
Variants§
Listen
Established
TimeWait
CloseWait
SynSent
SynRecv
FinWait1
FinWait2
Closing
LastAck
Closed
Unknown
Trait Implementations§
Source§impl Clone for ConnectionState
impl Clone for ConnectionState
Source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
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 ConnectionState
impl Debug for ConnectionState
Source§impl Display for ConnectionState
impl Display for ConnectionState
Source§impl Ord for ConnectionState
impl Ord for ConnectionState
Source§fn cmp(&self, other: &ConnectionState) -> Ordering
fn cmp(&self, other: &ConnectionState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConnectionState
impl PartialEq for ConnectionState
Source§impl PartialOrd for ConnectionState
impl PartialOrd for ConnectionState
Source§impl Serialize for ConnectionState
impl Serialize for ConnectionState
impl Copy for ConnectionState
impl Eq for ConnectionState
impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
impl Freeze for ConnectionState
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnsafeUnpin for ConnectionState
impl UnwindSafe for ConnectionState
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