pub enum TcpConnState {
None,
SynSent,
SynRecv,
Established,
FinWait1,
FinWait2,
Closing,
CloseWait,
LastAck,
TimeWait,
Closed,
}Expand description
Detailed TCP connection state machine
Variants§
None
No connection
SynSent
SYN sent by originator
SynRecv
SYN-ACK received (SYN sent by responder)
Established
Three-way handshake complete
FinWait1
FIN sent by originator
FinWait2
FIN acknowledged by responder
Closing
Both sides closing
CloseWait
FIN received while in ESTABLISHED
LastAck
FIN sent after CLOSE_WAIT
TimeWait
Waiting for old duplicates to expire
Closed
Connection fully closed
Trait Implementations§
Source§impl Clone for TcpConnState
impl Clone for TcpConnState
Source§fn clone(&self) -> TcpConnState
fn clone(&self) -> TcpConnState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TcpConnState
impl Debug for TcpConnState
Source§impl Default for TcpConnState
impl Default for TcpConnState
Source§fn default() -> TcpConnState
fn default() -> TcpConnState
Returns the “default value” for a type. Read more
Source§impl PartialEq for TcpConnState
impl PartialEq for TcpConnState
impl Copy for TcpConnState
impl Eq for TcpConnState
impl StructuralPartialEq for TcpConnState
Auto Trait Implementations§
impl Freeze for TcpConnState
impl RefUnwindSafe for TcpConnState
impl Send for TcpConnState
impl Sync for TcpConnState
impl Unpin for TcpConnState
impl UnwindSafe for TcpConnState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)