pub enum NetstatState {
Listen,
SynSent,
SynReceived,
Established,
FinWait1,
FinWait2,
CloseWait,
LastAck,
Closing,
Closed,
}Expand description
Renderable TCP state. Mirrors the state names Linux netstat
prints (LISTEN, SYN_SENT, ESTABLISHED, …).
Variants§
Listen
SynSent
SynReceived
Established
FinWait1
FinWait2
CloseWait
LastAck
Closing
Closed
Terminal. netstat filters these entries out — the socket is a
tick away from being reaped, and real Linux would show
TIME_WAIT (which our kernel doesn’t model). Kept in the enum
so From<TcpState> stays total.
Trait Implementations§
Source§impl Clone for NetstatState
impl Clone for NetstatState
Source§fn clone(&self) -> NetstatState
fn clone(&self) -> NetstatState
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 NetstatState
impl Debug for NetstatState
Source§impl Display for NetstatState
impl Display for NetstatState
Source§impl PartialEq for NetstatState
impl PartialEq for NetstatState
impl Copy for NetstatState
impl Eq for NetstatState
impl StructuralPartialEq for NetstatState
Auto Trait Implementations§
impl Freeze for NetstatState
impl RefUnwindSafe for NetstatState
impl Send for NetstatState
impl Sync for NetstatState
impl Unpin for NetstatState
impl UnsafeUnpin for NetstatState
impl UnwindSafe for NetstatState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.