pub enum TcpSocketState {
Closed,
Listen,
SynSent,
SynReceived,
Established,
FinWait1,
FinWait2,
CloseWait,
Closing,
LastAck,
TimeWait,
}Expand description
TCP socket state (simplified from smoltcp).
Used to communicate socket state from smoltcp to our state machine.
Variants§
Closed
Socket is closed
Listen
Listening (server mode - not used here)
SynSent
SYN sent, waiting for SYN-ACK
SynReceived
SYN-ACK received, sending ACK
Established
Connection established
FinWait1
FIN sent, waiting for ACK
FinWait2
FIN-ACK received
CloseWait
Waiting for FIN from peer
Closing
FIN sent after CloseWait
LastAck
FIN received in FinWait1
TimeWait
Waiting for timeout
Implementations§
Trait Implementations§
Source§impl Clone for TcpSocketState
impl Clone for TcpSocketState
Source§fn clone(&self) -> TcpSocketState
fn clone(&self) -> TcpSocketState
Returns a copy 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 TcpSocketState
impl Debug for TcpSocketState
Source§impl PartialEq for TcpSocketState
impl PartialEq for TcpSocketState
impl Copy for TcpSocketState
impl Eq for TcpSocketState
impl StructuralPartialEq for TcpSocketState
Auto Trait Implementations§
impl Freeze for TcpSocketState
impl RefUnwindSafe for TcpSocketState
impl Send for TcpSocketState
impl Sync for TcpSocketState
impl Unpin for TcpSocketState
impl UnwindSafe for TcpSocketState
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