INNER CODE UNIT · Rust
fmt
domcyrus/rustnet · crates/rustnet-host/src/lib.rs:100
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(match self {
Self::Closed => "CLOSED",
Self::Listen => "LISTEN",
Self::SynSent => "SYN_SENT",
Self::SynReceived => "SYN_RECV",
Self::Established => "ESTAB",
Self::FinWait1 => "FIN_WAIT1",
Self::FinWait2 => "FIN_WAIT2",
Self::CloseWait => "CLOSE_WAIT",
Self::Closing => "CLOSING",
Self::LastAck => "LAST_ACK",
Self::TimeWait => "TIME_WAIT",
Self::DeleteTcb => "DELETE_TCB",
Self::Unknown => "UNKNOWN",
})
}
}